Commits

Anonymous committed e19dc8e

Fixed easy_map template tag if address field is None

  • Participants
  • Parent commits b809b63

Comments (0)

Files changed (1)

File easy_maps/templatetags/easy_maps_tags.py

         if isinstance(address, Address):
             return address
 
-        if address == '':
+        if not address:
             map_ = Address(latitude=settings.EASY_MAPS_CENTER[0],
                            longitude=settings.EASY_MAPS_CENTER[1])
         else: