-
Notifications
You must be signed in to change notification settings - Fork 583
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
Admin images and folder empty, data still present #438
Comments
Same here with:
Reverting to 0.9.5 also works for me. |
It may be caused by some incompatibilities with django-suit. |
Could be some incompatibilities. |
It is a Django suit issue. Thought I checked that. Anyways, problem template file is "directory_table.html" in folder "/suit/templates/admin/filer/folder/" Removing the file solves the problem. Alternatively copy the "directory_table.html" file into you own projects "templates/admin/filer/folder/". Next replace line 18:
by the line:
The object list seems to be a list of tuples now whereas is was a simple list before (total guess). The actual item_perms isn't used, but atleast the for loop is used this time around. |
It appears this issue is now resolved in django-suit: darklow/django-suit#257 |
Does django-suit 2.10 contains this fix? |
closing this issue, as it appears that the problem was fixed in django-suit. please re-open this issue if my assumption is wrong. |
Having this issue with |
I had hours of fun debugging. I almost got defeated by this bug. These issues are not solved completely #753 #630 This line below ruins everything in production when https://github.com/divio/django-filer/blob/develop/filer/models/mixins.py#L20 The
|
@yunmanger1 thanks for the analysis! |
@yunmanger1 I see you are using a custom static storage. It seems likely that this bug is not reproducible without it. This might also just be a bug in your custom storage class. The file it can't find is definitely there, so it should find it. I think the django-filer code you are referring to has the property of calling If this is the case it might still be worth changing django-filer, because this unusual behaviour of django-filer is surely not helping :). |
@Chronial I know exactly where it happens. https://github.com/django/django/blob/master/django/contrib/staticfiles/storage.py#L93 If you use Particularly in my case I am using this:
Actually @stefanfoulis removed the '16' from default icon sizes nine days ago in 1089ca1, |
ok, lets add those missing icons then. @mikek could you have a look at this please? |
@stefanfoulis, after some debugging It seems that to fix this adding missing icons (sizes) should be enough. I suggest we even catch/ignore It does not affect |
ok 👍 |
Fixed in #785 |
I've run into a problem where the filer admin files and folders are no longer visible. I traced it back to a change from version 0.9.5 to 0.9.6.
This is how the admin looks in 0.9.5:

(edited image to remove user data)
This is how the admin looks in 0.9.6:

Note that in the second image the folders are no longer showing visible, but it does however state that there are 4 folders in the view.
I've encountered the issue on two different machines and disabling django-suit didn't seem to solve te problem. A set of the installed packages for the none working setup:
Django==1.5.9
django-filer==0.9.6
django-suit==0.2.9
django-autocomplete-light==1.4.14
South
django-compressor (only used for css in admin)
The autocomplete light javascript throws an error "Uncaught TypeError: undefined is not a function widget.js:343". But it does so in both the working and broken version. I think this is unrelated and is caused by loading jquery in the wrong order (jquery, autocomplete.js, jquery, filer.js).
Using an older version is a good enough fix at the moment for us, but I hope this helps somebody else.
The text was updated successfully, but these errors were encountered: