Ticket #16027: 1627-contenttype__unicode__2.patch
File 1627-contenttype__unicode__2.patch, 526 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.%s)' % (self.name, self.app_label, self.model) 89 89 90 90 def model_class(self): 91 91 "Returns the Python model class for this type of content."