Ticket #16027: 1627-contenttype__unicode__2.patch

File 1627-contenttype__unicode__2.patch, 526 bytes (added by Jakub Roztočil, 13 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.%s)' % (self.name, self.app_label, self.model)
    8989
    9090    def model_class(self):
    9191        "Returns the Python model class for this type of content."
Back to Top