tikservices / django-jet2

Next Generation of django-jet (Modern responsive template for the Django admin interface with improved functionality.)
https://github.com/tiktn/django-jet2
GNU Affero General Public License v3.0
6 stars 12 forks source link

autocomplete_fields broken on m2m fields #22

Open xrmx opened 3 years ago

xrmx commented 3 years ago

It looks like the autocomplete in the django admin is broken when using jet. What you type does not filter the options and whatever you type you always get all the possibile entries without filtering.

Widget rendering is broken too:

Django: Schermata da 2020-07-15 15-00-48

with jet2: Schermata da 2020-07-15 15-02-16

django-jet2 is 1.0.12, Django is 3.0.8.

Snippet:

models.py:

class MyModel(models.Model):
    myfield = models.ManyToManyField(...)

admin.py

class MyAdmin(admin.ModelAdmin):
    autocomplete_fields = ['myfield']
xrmx commented 3 years ago

The filter issue is because django uses term as querystring but jet frontend is using q