We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18de9dd commit ee47ae9Copy full SHA for ee47ae9
leaflet/forms/widgets.py
@@ -94,6 +94,6 @@ def get_context(self, name, value, attrs):
94
context = super().get_context(name, value, attrs)
95
context.update(self.get_attrs(name, attrs))
96
context["csp_nonce"] = self.csp_nonce
97
- 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;
98
context["reset_view_icon"] = static("leaflet/images/reset-view.png")
99
return context
0 commit comments