Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#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: UI/UX:


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 Changed 11 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

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 and save() method.

comment:2 Changed 11 years ago by BleSS

Resolution: wontfix
Status: closedreopened

I know that validation isn't performed when objects are created manually.

In the admin, unique_together didn't raise the ValidationError.

comment:3 Changed 11 years ago by Adrian Holovaty

Resolution: invalid
Status: reopenedclosed

Reopen if you have more information.

Note: See TracTickets for help on using tickets.
Back to Top