Commits

Nathan Duthoit  committed 741a24c

Try to patch the templatetag to work with the abstract model

  • Participants
  • Parent commits ecbc815

Comments (0)

Files changed (1)

File easy_maps/templatetags/easy_maps_tags.py

             address = self.address.resolve(context)
             template_name = self.template_name.resolve(context)
 
-            map, _ = Address.objects.get_or_create(address=address or '')
+            map = address
             context.update({
                 'map': map,
                 'width': self.width,