Commit f09f14d0 authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed #8226 -- Fixed a Python 2.3 incompatibility in a unicode string substitution, thanks nfg.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 97fd752f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -81,7 +81,10 @@ class Permission(models.Model):
        ordering = ('content_type__app_label', 'codename')

    def __unicode__(self):
        return u"%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name)
        return u"%s | %s | %s" % (
            unicode(self.content_type.app_label),
            unicode(self.content_type),
            unicode(self.name))

class Group(models.Model):
    """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.