Commit c1f5da90 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #8059 -- Added additional clarification to the ordering of Memberships...

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
parent 83f0d54d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)