Opened 18 years ago
Closed 18 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)
Change History (6)
comment:1 by , 18 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 18 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
comment:3 by , 18 years ago
| Status: | new → assigned |
|---|
comment:4 by , 18 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:5 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → 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.
Feel free to write up a patch.