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 75 forks source link

Doesn't work with primary_key fields on Django 3.2 #58

Closed int-ua closed 3 years ago

int-ua commented 3 years ago

Didn't test on previous version, but with Django 3.2 primary key fields are of DeferredAttribute class that doesn't have get_queryset method, both for integer AutoField and string CharField.

Trying to figure out if there are workarounds for this. Also, it doesn't work with Grappelli 2.15.1 on Django 3.2 even with non-PK fields, see https://github.com/sehmaschine/django-grappelli/issues/963

MDziwny commented 3 years ago

Did you try with this fix: https://github.com/farhan0581/django-admin-autocomplete-filter/pull/57 ? Unfortunately, it's not yet available on pypi but you can test it by installing with the git repo instead of the pypi package.

int-ua commented 3 years ago

Re-tested #57 without Grappelli and it works, thank you :+1:

Now we'll just have to find a fix for that Grappelli issue.