Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a related_name to a test model to avoid a name clash in the ful…

…l test suite.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit de81c5513c9d1e71965c7ccb5f8e1f62e6a45da6 1 parent 8b73acd
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/backends/models.py
View
2  tests/regressiontests/backends/models.py
@@ -41,7 +41,7 @@ class Meta:
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')
Please sign in to comment.
Something went wrong with that request. Please try again.