Closed stefan6419846 closed 9 months ago
@stefan6419846 Thanks for pointing this out! I think the issue is here in line 170: https://github.com/django-cms/django-filer/blob/dbeda3a58cf1b30f9684f9ef328a5eb71f9a3f50/filer/admin/fileadmin.py#L166-L171
The name should have the model name in lower case in the middle.
We are employing a check for duplicate URL names in our applications and stumbled upon an issue when using
django-filer
: It seems likefiler_file_fileicon
is being defined/configured twice.If I could pinpoint this correctly, the issue is about
filer.admin.fileadmin.FileAdmin.get_urls
defining the URL namefiler_file_fileicon
.filer.admin.imageadmin.ImageAdmin
extends this class, but does not overrideget_urls
, thus the duplicate is being generated.https://github.com/django-cms/django-filer/blob/dbeda3a58cf1b30f9684f9ef328a5eb71f9a3f50/filer/admin/fileadmin.py#L166-L171 https://github.com/django-cms/django-filer/blob/dbeda3a58cf1b30f9684f9ef328a5eb71f9a3f50/filer/admin/imageadmin.py#L92-L94
I have been able to verify that using
does indeed fix this specific issue, although I have not yet tested whether this might have other side effects.