diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-09-01 21:16:17 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-09-01 21:16:17 +0000 |
| commit | ca7db155aa32d659c5fc0fc01a50e844af798845 (patch) | |
| tree | dfc6ea9bd569badfe728ff6433b34e87b2094b80 /tests | |
| parent | d5cc16b47154e3788db5d38a39de70aef557eebb (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/generic_relations/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/generic_relations/models.py b/tests/modeltests/generic_relations/models.py index bd8478f534..2f36e268e0 100644 --- a/tests/modeltests/generic_relations/models.py +++ b/tests/modeltests/generic_relations/models.py @@ -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 |
