Django-jet: RelatedFieldAjaxListFilter not working

Created on 20 Oct 2016  路  7Comments  路  Source: geex-arts/django-jet

I cloned the django-jet-demo and tried to use RelatedFieldAjaxListFilter as described here.

I modified the PersonAdmin list_filter as shown below-

    list_filter = (
        ('address', RelatedFieldAjaxListFilter),
        'company',
    )

But after this no related fields are visible in dropdown. Screenshots are attached.

Without RelatedFieldAjaxListFilter:
screenshot from 2016-10-20 18 53 00

With RelatedFieldAjaxListFilter:
screenshot from 2016-10-20 18 50 15

All 7 comments

I am having the same problem.

Do you use some packages that change the select input box performance?

I think the problem is the RelatedFieldAjaxListFilter do not set ajax class in the filter and the toolbar.js do not add ajax class on the Select too.

Did you try solve it adding the ajax class?

I rewrote the filter.html set everything in select html adding the ajax_attrs from the class and changelist-filter-select class to apply the filter event.

Please make a PR :D

@a1Gupta thanks for report. Indeed this bug appeared in 0.9+ versions. Fixed in dev branch and will be released in 1.0.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RamizSami picture RamizSami  路  4Comments

nikolas310 picture nikolas310  路  4Comments

pwndr00t picture pwndr00t  路  4Comments

PaoloC68 picture PaoloC68  路  7Comments

Zundrium picture Zundrium  路  9Comments