summaryrefslogtreecommitdiff
path: root/tests/generic_relations
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-08 16:58:23 +0100
committerMarkus Holtermann <info@markusholtermann.eu>2015-01-16 20:21:34 +0100
commitb4ac23290772e0c11379eb2dfb81c750b7052b66 (patch)
tree9dcb8c6c65589f9074b11547ba6529d9f273f46c /tests/generic_relations
parent374c2419e5adef53a643bf69c4753a6bf0c78a98 (diff)
downloaddjango-b4ac23290772e0c11379eb2dfb81c750b7052b66.tar.gz
Fixed #24099 -- Removed contenttype.name deprecated field
This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
Diffstat (limited to 'tests/generic_relations')
-rw-r--r--tests/generic_relations/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_relations/models.py b/tests/generic_relations/models.py
index 004ca080a1..cd013e580a 100644
--- a/tests/generic_relations/models.py
+++ b/tests/generic_relations/models.py
@@ -29,7 +29,7 @@ class TaggedItem(models.Model):
content_object = GenericForeignKey()
class Meta:
- ordering = ["tag", "content_type__name"]
+ ordering = ["tag", "content_type__model"]
def __str__(self):
return self.tag