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