Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Unique url names for file icon #1423

Merged
merged 10 commits into from
Sep 19, 2023
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
CHANGELOG
=========

unreleased
==========

* fix: ensure uniqueness of icon admin url names

3.0.6 (2023-09-08)
==================

Expand Down
2 changes: 1 addition & 1 deletion filer/admin/fileadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_urls(self):
return super().get_urls() + [
path("icon/<int:file_id>/<int:size>",
self.admin_site.admin_view(self.icon_view),
name="filer_file_fileicon")
name=f"filer_{self.model._meta.model_name}_fileicon")
]

def icon_view(self, request, file_id: int, size: int) -> HttpResponse:
Expand Down
Loading