Opened 2 years ago
Closed 2 years ago
#33989 closed Bug (duplicate)
filter_horizontal/filter_vertical giving "This field is required" error even when objects are selected.
Reported by: | Harshiv Pandya | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 4.1 |
Severity: | Normal | Keywords: | django-admin, filter-horizontal, filter-vertical |
Cc: | Harshiv Pandya | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (2)
comment:1 by , 2 years ago
Cc: | added |
---|
comment:2 by , 2 years ago
Component: | Uncategorized → contrib.admin |
---|---|
Has patch: | unset |
Resolution: | → duplicate |
Status: | new → closed |
Summary: | filter_horizontal and filter_vertical giving "This field is required" error even when objects are selected on Django 4.1 admin → filter_horizontal/filter_vertical giving "This field is required" error even when objects are selected. |
It was fixed in Django 4.1.1. Duplicate of #33904.