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
When model admin is subclass of SortableAdmin and SimpleListFilter is used FieldError exception is raised.
This is because SimpleListFilter defines parameter_name and SortableAdmin tries to filter by this field.
When model admin is subclass of SortableAdmin and SimpleListFilter is used FieldError exception is raised.
This is because SimpleListFilter defines
parameter_name
and SortableAdmin tries to filter by this field.This is done in:
https://github.com/jazzband/django-admin-sortable/blob/master/adminsortable/admin.py#L56
Workaround is to override
get_querystring_filters
inSortableAdmin
subclass and remove any parameter used inSimpleListFilter
.I have added minimal test case for this issue in https://github.com/bmihelac/django-admin-sortable/tree/tmp/issue-264-SimpleListFilter
To reproduce:
The text was updated successfully, but these errors were encountered: