Opened 11 years ago
Closed 11 years ago
#20791 closed Cleanup/optimization (fixed)
"Model %(model)s with pk %(pk)r does not exist."
Reported by: | Luc Saffre | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.5 |
Severity: | Normal | Keywords: | |
Cc: | eromijn@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
I agree that this is nit-picky, but in db/models/fields/related.py
(line 979 in version 1.5.1), Django issues the following message:
"Model %(model)s with pk %(pk)r does not exist."
This formulation is wrong. Not the model but a model *instance* is missing.
So I suggest to change this message to:
"%(model)s instance with pk %(pk)r does not exist."
or just:
"%(model)s with pk %(pk)r does not exist."
Change History (4)
comment:1 by , 11 years ago
Cc: | added |
---|---|
Easy pickings: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Has patch: | set |
---|
I have created a pull request for this : https://github.com/django/django/pull/1392
comment:3 by , 11 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
The patch looks good to me. This message does not seem to be referred to in either tests or documentation, so this should be all that is needed.
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Agreed, the current message can be confusing.