From 9223f063c8c175b1a7c2e1739389c6db36392e82 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Fri, 15 Aug 2008 03:36:18 +0000 Subject: [PATCH] Fixed doctest which relied on implicit ordering and was failing on Oracle. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8357 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/queries/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 05e1777916..894554d30e 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -20,6 +20,9 @@ class Tag(models.Model): parent = models.ForeignKey('self', blank=True, null=True, related_name='children') + class Meta: + ordering = ['name'] + def __unicode__(self): return self.name