Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for autocomplete_fields that span foreign key relationships #2

Open
chrisrodz opened this issue Dec 13, 2019 · 9 comments

Comments

@chrisrodz
Copy link

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.

@vigo
Copy link
Collaborator

vigo commented Dec 16, 2019

Hmm... I'll investigate that. Thanks for the heads up!

@vigo
Copy link
Collaborator

vigo commented Dec 17, 2019

hi again, i guess i need more details :)

@iMakedonsky
Copy link

iMakedonsky commented Mar 9, 2020

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']

@vigo
Copy link
Collaborator

vigo commented Aug 17, 2021

I'll work on it!

@georgekpg
Copy link

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'

@PSzczepanski1996
Copy link

Any update on this?

@firvida
Copy link

firvida commented Jan 10, 2024

Not working yet

@Kabirov7
Copy link

Any update on this?

@vigo
Copy link
Collaborator

vigo commented May 20, 2024

this project is deprecated, enjoy -> https://github.com/vigo/django-admin-list-filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants