Opened 8 years ago

Closed 7 years ago

#4944 closed (fixed)

It should be documented that "unique" raises an IntegrityError

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

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 PhiR 8 years ago.
updated the docs

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Feel free to write up a patch.

Changed 8 years ago by PhiR

updated the docs

comment:2 Changed 8 years ago by PhiR

  • Has patch set
  • Owner changed from nobody to PhiR

comment:3 Changed 8 years ago by PhiR

  • Status changed from new to assigned

comment:4 Changed 8 years ago by Simon G. <dev@…>

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from assigned to closed

(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