-
Notifications
You must be signed in to change notification settings - Fork 65
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 broken on Django 4 #164
Comments
I can confirm this. Seems that the static files like The Problem is in EDIT: I now see that a PR already exists: #158 EDIT2: The bad thing is: |
In Django 4.0 the `AutocompleteMixin` has been changed and the old `AutocompleteMixin.media.fget(None)` will raise an (silent) error. Fix this and add a test to check the included JS files. Normally, the whole thing should be tested via browser. But hopefully this way an error will be noticed faster.
In Django 4.0 the `AutocompleteMixin` has been changed and the old `AutocompleteMixin.media.fget(None)` will raise an (silent) error. Fix this and add a test to check the included JS files. Normally, the whole thing should be tested via browser. But hopefully this way an error will be noticed faster.
@radiac Could you please take a look at this issue and the provided PRs? We have to add a lot of unstable workaround code to circumvent this issue, which is not a nice experience. |
Bugfix radiac#164 Broken admin with Django 4.0 fingers crossed
Add a work-a-round for: radiac/django-tagulous#164 The old tagulous implementation raised a silent error with Django >=4.0 The real fix is here: radiac/django-tagulous#167
Bugfix radiac#164 Broken admin with Django 4.0
I am unable to get autocomplete working in the admin interface on Django 4. To recreate the issue, follow the
README.rst
from theexample/
directory:3.2
with4.0
in the linepip install "Django~=3.2"
.url
withre_path
inexample/urls.py
and change the import line tofrom django.urls import re_path
.The
Title
,Skills
andHobbies
fields are normal text input widgets instead of the Javascript dropdown with autocomplete feature. See the screenshot below:Package versions:
The text was updated successfully, but these errors were encountered: