From de81c5513c9d1e71965c7ccb5f8e1f62e6a45da6 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 30 Jul 2010 03:49:58 +0000 Subject: [PATCH] Added a related_name to a test model to avoid a name clash in the full test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13455 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/backends/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')