Opened 17 years ago
Closed 13 years ago
#6417 closed New feature (duplicate)
Small change in generic realtions
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.contenttypes | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | aribao@… | Triage Stage: | Design decision needed |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've modified the class model ContentType in /django/contrib/contenttypes/models.py to return:
return ('%s - %s') % ( self.app_label, self.name )
in order to make easy to use generic relations in the admin. If you had a model with the same name across different applications, it was impossible to know the exact reference in the select.
Attachments (1)
Change History (6)
by , 17 years ago
Attachment: | models.py.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 14 years ago
Component: | Contrib apps → contrib.contenttypes |
---|
comment:3 by , 14 years ago
Type: | → New feature |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|
comment:5 by , 13 years ago
Easy pickings: | unset |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
UI/UX: | unset |
Closing as a dupe of #16027 because Julien accepted that one, and it has a more recent patch/discussion.
Note:
See TracTickets
for help on using tickets.
I think this is fair enough, yes?
Adrian - try to stick to PEP8 formatting: