Ticket #8226: auth_permission_unicode.diff

File auth_permission_unicode.diff, 713 bytes (added by Nils Fredrik Gjerull, 16 years ago)
  • django/contrib/auth/models.py

     
    8181        ordering = ('content_type__app_label', 'codename')
    8282
    8383    def __unicode__(self):
    84         return u"%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name)
     84        return u"%s | %s | %s" % (unicode(self.content_type.app_label), unicode(self.content_type), unicode(self.name))
    8585
    8686class Group(models.Model):
    8787    """Groups are a generic way of categorizing users to apply permissions, or some other label, to those users. A user can belong to any number of groups.
Back to Top