diff --git a/tests/regressiontests/backends/models.py b/tests/regressiontests/backends/models.py index 69575cb429..7315408d49 100644 --- a/tests/regressiontests/backends/models.py +++ b/tests/regressiontests/backends/models.py @@ -41,7 +41,7 @@ if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] != 'django.db.backends.mysql': class Tag(models.Model): name = models.CharField(max_length=30) - content_type = models.ForeignKey(ContentType) + content_type = models.ForeignKey(ContentType, related_name='backend_tags') object_id = models.PositiveIntegerField() content_object = generic.GenericForeignKey('content_type', 'object_id')