#33989: filter_horizontal and filter_vertical giving "This field is required" error
even when objects are selected on Django 4.1 admin
-------------------------------------+-------------------------------------
Reporter: harshivvp | Owner: nobody
Type: Bug | Status: new
Component: | Version: 4.1
Uncategorized | Keywords: django-admin,
Severity: Normal | filter-horizontal, filter-vertical
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Django Admin after updating to Django 4.1 causes **This field is
required.** error message when saving object after adding any
ManyToManyField relation by using filter_horizontal and filter_vertical
options. Problem does not persist when I do not use the horizontal and
vertical filters and during addition of objects through Django shell.
Happens only via the admin page. I downgraded the Django to 4.0.6 and
tried replicating, it works fine there.
Looks like if I tried to save object on Django 4.1 without reloading CSS
from 4.0.6, it still worked.
--
Ticket URL: <https://code.djangoproject.com/ticket/33989>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.