[Django] #33989: filter_horizontal and filter_vertical giving "This field is required" error even when objects are selected on Django 4.1 admin

24 views
Skip to first unread message

Django

unread,
Sep 7, 2022, 5:59:57 AM9/7/22
to django-...@googlegroups.com
#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.

Django

unread,
Sep 7, 2022, 6:01:22 AM9/7/22
to django-...@googlegroups.com
#33989: filter_horizontal and filter_vertical giving "This field is required" error
even when objects are selected on Django 4.1 admin
-------------------------------------+-------------------------------------
Reporter: Harshiv Pandya | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 4.1
Severity: Normal | Resolution:
Keywords: django-admin, | Triage Stage:
filter-horizontal, filter- | Unreviewed
vertical |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Harshiv Pandya):

* cc: Harshiv Pandya (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/33989#comment:1>

Reply all
Reply to author
Forward
0 new messages