Commits

Yohan Boniface  committed fff1250

Make possible to override some URLs

  • Participants
  • Parent commits f00fe03

Comments (0)

Files changed (1)

File leaflet_storage/views.py

         kwargs['error_class'] = FlatErrorList
         return form_class(**kwargs)
 
+
 class MapDetailMixin(object):
 
     model = Map
         properties = {}
         properties['datalayers'] = self.get_datalayers()
         properties['urls'] = _urls_for_js()
+        properties['urls'].update(getattr(settings, 'LEAFLET_STORAGE_EXTRA_URLS', {}))
         properties['tilelayers'] = self.get_tilelayers()
         # properties['name'] = self.object.name
         # properties['description'] = self.object.description