Commit 0f2bcab1 by Matt Croydon Committed by Alex Gaynor

Added related_name to content_type field on TaggedItem.

parent 4eb17239
......@@ -19,7 +19,7 @@ class Tag(models.Model):
class TaggedItem(models.Model):
object_id = models.IntegerField()
content_type = models.ForeignKey(ContentType)
content_type = models.ForeignKey(ContentType, related_name="items")
content_object = GenericForeignKey()
tag = models.ForeignKey(Tag, related_name="items")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment