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
This commit is contained in:
Matt Boersma 2008-08-15 03:36:18 +00:00
parent 59ce2aaeb6
commit 9223f063c8
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class Tag(models.Model):
parent = models.ForeignKey('self', blank=True, null=True, parent = models.ForeignKey('self', blank=True, null=True,
related_name='children') related_name='children')
class Meta:
ordering = ['name']
def __unicode__(self): def __unicode__(self):
return self.name return self.name