farhan0581 / django-admin-autocomplete-filter

A simple Django app to render list filters in django admin using autocomplete widget.
GNU General Public License v3.0
351 stars 76 forks source link

Autocompletion on nested foreign Key/M2M #75

Open RomikimoR opened 2 years ago

RomikimoR commented 2 years ago

Hello,

I have a Django 2.2 project.

I managed to use you filter on a foreign key of foreign key like this

testimgproject_name

Regarding your code it does not seems possible to do the same on more nested foreign key like:

testimgproject__tags_name

Do you confirm ?

Thanks

lgajpi commented 2 years ago

redefine the class with admin register - it helped me. Example: @admin.register(models.YOUMODEL) class YOUMODELAdmin(admin.ModelAdmin): list_display = ( "FILED", ) search_fields = ("FILED",)