You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using django-storages/boto3 with a DigitalOcean space. While attempting to access /admin/filebrowser/browse/ I get the following error at base.py sort_by_attr function: '<' not supported between instances of 'float' and 'NoneType'
Not sure if this is unique to Digital Ocean spaces but a folder is included in the seq list of objects being sorted at return sorted(seq, key=attrgetter(*attr))
This folder object returns None for the various attributes (date, filesize, etc) causing the error.
Removing the folder object from the seq list seems to have fixed the issue without further consequence.
The text was updated successfully, but these errors were encountered:
I am using django-storages/boto3 with a DigitalOcean space. While attempting to access /admin/filebrowser/browse/ I get the following error at base.py sort_by_attr function:
'<' not supported between instances of 'float' and 'NoneType'
Not sure if this is unique to Digital Ocean spaces but a folder is included in the
seq
list of objects being sorted atreturn sorted(seq, key=attrgetter(*attr))
This folder object returns None for the various attributes (date, filesize, etc) causing the error.
Removing the folder object from the
seq
list seems to have fixed the issue without further consequence.The text was updated successfully, but these errors were encountered: