Opened 9 years ago

Last modified 20 months ago

#16027 closed Cleanup/optimization

Include app_label in ContentType.__unicode__ — at Initial Version

Reported by: Jakub Roztočil Owned by: nobody
Component: contrib.contenttypes Version: master
Severity: Normal Keywords:
Cc: lemaire.adrien@…, Greg Schmit Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: yes
Easy pickings: no UI/UX: no


When there are multiple models with same name in your project and you use the amazing content types framework, then selects for foreign keys to ContentType contain indistinguishable items. To fix this, the app_label needs to be included in ContentType's unicode.

Change History (1)

Changed 9 years ago by Jakub Roztočil

Note: See TracTickets for help on using tickets.
Back to Top