summaryrefslogtreecommitdiff
path: root/tests/modeltests
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-06-29 12:29:48 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-06-29 12:29:48 +0000
commite522e61a80aa9faae3fc0bcd69fd99d6b4951326 (patch)
tree7876f21229c91cd91143ada1946f2e3abb1acf47 /tests/modeltests
parentfe2747d1e01cc07ed08dd3193693aa6206120afd (diff)
downloaddjango-e522e61a80aa9faae3fc0bcd69fd99d6b4951326.tar.gz
Fixed #11392 -- Enforced a predictable result order for a couple of test cases. Thanks to Nathan Auch for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests')
-rw-r--r--tests/modeltests/transactions/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modeltests/transactions/models.py b/tests/modeltests/transactions/models.py
index 06d21bbdd4..6763144ca5 100644
--- a/tests/modeltests/transactions/models.py
+++ b/tests/modeltests/transactions/models.py
@@ -14,6 +14,9 @@ class Reporter(models.Model):
last_name = models.CharField(max_length=30)
email = models.EmailField()
+ class Meta:
+ ordering = ('first_name', 'last_name')
+
def __unicode__(self):
return u"%s %s" % (self.first_name, self.last_name)