django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.73k stars 574 forks source link

PROBLEM IN TEMPLATE (admin_foler.html) WHEN USING 'FilerFolderField' #1463

Closed martimlello closed 1 month ago

martimlello commented 1 month ago

Hello, I am working on updating a Django project, which was using version 3.2.6 and consequently used django-filer 2.0.2. django-filer was used so that the user could choose a folder with information relevant to a particular field!!! In the models it was defined like this :

imagem_1

And everything worked as expected!

imagem_2

In this project update, I updated Django to version 5.0.6 and consequently the django-filer to the latest version, 3.1.1.

When using the same field, I noticed that there are problems with the template, as shown in the image below!!!

imagem_3

I was then able to detect that the problem came from the admin_folder.html file, because when I replaced it with the html from the old version, it already allowed me to see the add folder field... The current version of the template has the classes hidden, and I can't understand why!

I don't know if I'm missing a setting or something, but I think it's a problem with the template!!!

Your insights into resolving this performance issue would be greatly appreciated.

fsbraun commented 1 month ago

@martimlello This is the widget I see when testing (at least within the admin when doing a quick check):

image

Are you using the field within the admin or outside?

fsbraun commented 1 month ago

OK, I reproduced the issue with standard Django admin styles. #1467 fixes the issue. @martimlello Thanks for reporting this!

fsbraun commented 1 month ago

Fixed in django-filer 3.1.3

martimlello commented 1 month ago

Thanks @fsbraun !!! Everything is working perfectly now.

I'd like to make a suggestion, I don't know if it can be in this area, but I hope so :)

You could add something that shows the path of a currently selected folder! And also allow that when you click on the folder icon, it allows you to change the currently selected folder, because at the moment I can only change it if I delete it and then add a new one.

gt