Browse files

Fixed #8059 -- Added additional clarification to the ordering of Memb…

…erships 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
  • Loading branch information...
1 parent 83f0d54 commit c1f5da90a5596a238017b242e698d14d6e71e796 @freakboy3742 freakboy3742 committed Aug 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/modeltests/m2m_through/models.py
View
2 tests/modeltests/m2m_through/models.py
@@ -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)

0 comments on commit c1f5da9

Please sign in to comment.