Opened 15 years ago
Closed 15 years ago
#13811 closed (fixed)
Unique checks in model formsets do not ignore null values
| Reported by: | Claude Paroz | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When you have unique_together constraints in which one member can be null, the constraint should not be enforced (as it is correctly done at the model level). Unfortunately, this fails at the formset validation. I think this is a regression in 1.2.
Attachments (2)
Change History (3)
by , 15 years ago
| Attachment: | formset_validation.diff added |
|---|
by , 15 years ago
| Attachment: | formset_validation_tests.diff added |
|---|
Complementary test for this issue
comment:1 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Ignore when any unique constraint member is None