Opened 17 years ago

Closed 17 years ago

#4944 closed (fixed)

It should be documented that "unique" raises an IntegrityError

Reported by: anonymous Owned by: Philippe Raoult
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Right now, http://www.djangoproject.com/documentation/model-api/#unique is rather unspecific how database level enforcement is reflected in the Python code.

Attachments (1)

4944.diff (489 bytes ) - added by Philippe Raoult 17 years ago.
updated the docs

Download all attachments as: .zip

Change History (6)

comment:1 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedAccepted

Feel free to write up a patch.

by Philippe Raoult, 17 years ago

Attachment: 4944.diff added

updated the docs

comment:2 by Philippe Raoult, 17 years ago

Has patch: set
Owner: changed from nobody to Philippe Raoult

comment:3 by Philippe Raoult, 17 years ago

Status: newassigned

comment:4 by Simon G. <dev@…>, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [6566]) Fixed #4944 -- Added a note about Model.save() raising IntegrityError is a
'unique' constraint is violated. Patch from PhiR.

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