#699 closed defect (invalid)
unique_together - raise an error message
Reported by: | Bless | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
unique_together should raise an error message, instead of show:
There's been an error: Traceback (most recent call last): ... ... ... OperationalError: columns foo, bar are not unique
Change History (3)
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
I know that validation isn't performed when objects are created manually.
In the admin, unique_together didn't raise the ValidationError.
comment:3 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Reopen if you have more information.
Note:
See TracTickets
for help on using tickets.
unique_together
raises an appropriate ValidationError in the admin, or when you use the manipulator directly. No validation is performed when you create objects manually using the API andsave()
method.