Code

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

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 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 7 years ago by PhiR

updated the docs

comment:2 Changed 7 years ago by PhiR

  • Has patch set
  • Owner changed from nobody to PhiR

comment:3 Changed 7 years ago by PhiR

  • Status changed from new to assigned

comment:4 Changed 7 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.