Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions leaflet/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.template.defaultfilters import slugify
from django.templatetags.static import static

from leaflet import app_settings, PLUGINS, PLUGIN_FORMS
from leaflet import PLUGIN_FORMS, PLUGINS, app_settings


class LeafletWidget(BaseGeometryWidget):
Expand Down Expand Up @@ -94,6 +94,6 @@ def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
context.update(self.get_attrs(name, attrs))
context["csp_nonce"] = self.csp_nonce
context["FORCE_IMAGE_PATH"] = app_settings.get('FORCE_IMAGE_PATH')
context["FORCE_IMAGE_PATH"] = static("leaflet/images/") if app_settings['FORCE_IMAGE_PATH'] else False
context["reset_view_icon"] = static("leaflet/images/reset-view.png")
return context