Ticket #16027: contenttype__unicode__.patch
File contenttype__unicode__.patch, 511 bytes (added by , 14 years ago) |
---|
-
django/contrib/contenttypes/models.py
85 85 unique_together = (('app_label', 'model'),) 86 86 87 87 def __unicode__(self): 88 return self.name88 return u'%s (%s)' % (self.name, self.app_label) 89 89 90 90 def model_class(self): 91 91 "Returns the Python model class for this type of content."