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:
Russell Keith-Magee 2008-08-01 02:23:46 +00:00
parent 83f0d54d41
commit c1f5da90a5
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Membership(models.Model):
invite_reason = models.CharField(max_length=64, null=True) invite_reason = models.CharField(max_length=64, null=True)
class Meta: class Meta:
ordering = ('date_joined','invite_reason') ordering = ('date_joined', 'invite_reason', 'group')
def __unicode__(self): def __unicode__(self):
return "%s is a member of %s" % (self.person.name, self.group.name) return "%s is a member of %s" % (self.person.name, self.group.name)