Ticket #8226: auth_permission_unicode.diff
File auth_permission_unicode.diff, 713 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/models.py
81 81 ordering = ('content_type__app_label', 'codename') 82 82 83 83 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)) 85 85 86 86 class Group(models.Model): 87 87 """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.