Exemplo n.º 1
0
 def get_context_data(self):
     context = super(LocationPointWidget, self).get_context_data()
     context['areas'] = Area.get_all()
     return context
Exemplo n.º 2
0
class PolygonWidget(ff_gis.MultiPolygonWidget, ff_gis.BaseOsmWidget):
    template_name = 'gis/osm.html'
    map_width = 400
    areas = Area.get_all()
Exemplo n.º 3
0
 def get_context_data(self):
     context = super(LocationPointWidget, self).get_context_data()
     context['areas'] = Area.get_all()
     return context