summaryrefslogtreecommitdiff
path: root/tests/regressiontests/null_fk
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/regressiontests/null_fk
parentfe2747d1e01cc07ed08dd3193693aa6206120afd (diff)
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/regressiontests/null_fk')
-rw-r--r--tests/regressiontests/null_fk/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regressiontests/null_fk/models.py b/tests/regressiontests/null_fk/models.py
index 529dde5039..49887819ac 100644
--- a/tests/regressiontests/null_fk/models.py
+++ b/tests/regressiontests/null_fk/models.py
@@ -22,6 +22,9 @@ class Comment(models.Model):
post = models.ForeignKey(Post, null=True)
comment_text = models.CharField(max_length=250)
+ class Meta:
+ ordering = ('comment_text',)
+
def __unicode__(self):
return self.comment_text