Opened 19 years ago

Closed 19 years ago

Last modified 18 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: 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 Adrian Holovaty, 19 years ago

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 by BleSS, 19 years ago

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 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: reopenedclosed

Reopen if you have more information.

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