mrts / django-admin-list-filter-dropdown

Use dropdowns in Django admin list filter
MIT License
315 stars 48 forks source link

Cannot inherit from FieldListFilter #5

Closed jonathanchin closed 5 years ago

jonathanchin commented 7 years ago

Using this package (any of the filters) I get this error: "(admin.E114) The value of 'list_filter[1]' must not inherit from 'FieldListFilter'." Seems like Django doesn't want us mucking with internals. Is there a workaround to avoid the error? I'm using Django 1.11.

mrts commented 6 years ago

I will investigate this eventually, meanwhile any help is much appreciated.

mrts commented 5 years ago

@jonathanchin I cannot reproduce this, please share a code snippet and feel free to reopen.

szabozoltan69 commented 5 years ago

I had similar issue, in my case it was a typo. I wrote: list_filter = ('sg', ChoiceDropdownFilter) instead of the correct list_filter = (('sg', ChoiceDropdownFilter),)

nitishsainani commented 4 years ago

list_filter = ('date', DateRangeFilter) wrong 👎 list_filter = (('date', DateRangeFilter)) wrong 👎 list_filter = (('date', DateRangeFilter),) right 👍