Fixed #8059 -- Added additional clarification to the ordering of Memberships so that output order is predictable in tests. Thanks to ramiro for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
83f0d54d41
commit
c1f5da90a5
|
@ -30,7 +30,7 @@ class Membership(models.Model):
|
|||
invite_reason = models.CharField(max_length=64, null=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ('date_joined','invite_reason')
|
||||
ordering = ('date_joined', 'invite_reason', 'group')
|
||||
|
||||
def __unicode__(self):
|
||||
return "%s is a member of %s" % (self.person.name, self.group.name)
|
||||
|
|
Loading…
Reference in New Issue