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

autocomplete_fields broken on m2m fields #22

Open
xrmx opened this issue Jul 15, 2020 · 1 comment
Open

autocomplete_fields broken on m2m fields #22

xrmx opened this issue Jul 15, 2020 · 1 comment

Comments

@xrmx
Copy link

xrmx commented Jul 15, 2020

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 xrmx changed the title autocomplete_fields rendering broken on m2m fields autocomplete_fields broken on m2m fields Jul 15, 2020
@xrmx
Copy link
Author

xrmx commented Jul 15, 2020

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

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

1 participant