Kaydet (Commit) ca7db155 authored tarafından Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss

Fixed #8763: added an explicit ordering to the generic_relations test so that…

Fixed #8763: added an explicit ordering to the generic_relations test so that the test results aren't dependant on database ordering.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst d5cc16b4
......@@ -22,7 +22,7 @@ class TaggedItem(models.Model):
content_object = generic.GenericForeignKey()
class Meta:
ordering = ["tag"]
ordering = ["tag", "-object_id"]
def __unicode__(self):
return self.tag
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment