Skip to content

Commit ee47ae9

Browse files
committed
Solve broken marker image paths in the admin panel #382
1 parent 18de9dd commit ee47ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leaflet/forms/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ def get_context(self, name, value, attrs):
9494
context = super().get_context(name, value, attrs)
9595
context.update(self.get_attrs(name, attrs))
9696
context["csp_nonce"] = self.csp_nonce
97-
context["FORCE_IMAGE_PATH"] = app_settings.get('FORCE_IMAGE_PATH')
97+
context["FORCE_IMAGE_PATH"] = static("leaflet/images/") if app_settings['FORCE_IMAGE_PATH'] else False;
9898
context["reset_view_icon"] = static("leaflet/images/reset-view.png")
9999
return context

0 commit comments

Comments
 (0)