Small change in generic realtions
|Reported by:||Owned by:||nobody|
|Cc:||aribao@…||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.