summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/contenttypes_tests/tests.py')
-rw-r--r--tests/contenttypes_tests/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py
index 7000c6fe48..c2377bf82e 100644
--- a/tests/contenttypes_tests/tests.py
+++ b/tests/contenttypes_tests/tests.py
@@ -252,9 +252,11 @@ class GenericRelationshipTests(SimpleTestCase):
'custom_content_type', 'custom_object_id')
class Bookmark(models.Model):
- tags = GenericRelation('TaggedItem',
+ tags = GenericRelation(
+ 'TaggedItem',
content_type_field='custom_content_type',
- object_id_field='custom_object_id')
+ object_id_field='custom_object_id',
+ )
errors = Bookmark.tags.field.check()
self.assertEqual(errors, [])