django-admin-autocomplete-list-filter
django-admin-autocomplete-list-filter copied to clipboard
Add support for autocomplete_fields that span foreign key relationships
Currently this list filter fails to account for fields that span across foreignkey relationships, it will correctly parse the field as a ForeignKey but will attempt to find it on the Model that belongs to the current ModelAdmin, instead of traversing across models.
I can add a more concrete example if necessary.
Hmm... I'll investigate that. Thanks for the heads up!
hi again, i guess i need more details :)
Say we have such model structure:
InvoiceItem
=> Invoice
=> User
Would be great to allow InvoiceItemAdmin
with autocomplete working for nested relations, e.g.
by specifying autocomplete_list_filter = ['invoice__user']
I'll work on it!
At present it does not work with such two level structure. I also came across this problem. The error message will be 'InvoiceItem has no field user'
Any update on this?
Not working yet
Any update on this?
this project is deprecated, enjoy -> https://github.com/vigo/django-admin-list-filter