Example #1
0
 def get_map_objects(self):
     if not self.tag:
         return None
     # We re-use the MapForTag view's logic here to embed a mini-map on the
     # tags list page
     map_view = MapForTag()
     map_view.kwargs = dict(tag=self.tag.slug)
     map_view.object_list = map_view.get_queryset()
     return map_view.get_map_objects()
Example #2
0
 def get_map_objects(self):
     if not self.tag:
         return None
     # We re-use the MapForTag view's logic here to embed a mini-map on the
     # tags list page
     map_view = MapForTag()
     map_view.kwargs = dict(tag=self.tag.slug)
     map_view.object_list = map_view.get_queryset()
     return map_view.get_map_objects()
 def get_map_objects(self):
     if not self.tag:
         return None
     # We re-use the MapForTag view's logic here to embed a mini-map on the
     # tags list page
     from maps.views import MapForTag
     map_view = MapForTag()
     map_view.request = self.request
     map_view.kwargs = dict(tag=self.tag.slug, region=self.get_region().slug)
     map_view.object_list = map_view.get_queryset()
     return map_view.get_map_objects()