Ticket #16027: contenttype__unicode__.patch

File contenttype__unicode__.patch, 511 bytes (added by jakub, 4 years ago)
  • django/contrib/contenttypes/models.py

     
    8585        unique_together = (('app_label', 'model'),)
    8686
    8787    def __unicode__(self):
    88         return self.name
     88        return u'%s (%s)' % (self.name, self.app_label)
    8989
    9090    def model_class(self):
    9191        "Returns the Python model class for this type of content."
Back to Top