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
This commit is contained in:
parent
8b73acdf4d
commit
de81c5513c
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue