Commit 82e9c064 by Alex Gaynor

Fixed #35, added db_index=True to TaggedItem.object_id, which you almost…

Fixed #35, added db_index=True to TaggedItem.object_id, which you almost certainly will always want.
parent b3762d9b
...@@ -83,7 +83,7 @@ class TaggedItemBase(models.Model): ...@@ -83,7 +83,7 @@ class TaggedItemBase(models.Model):
class TaggedItem(TaggedItemBase): class TaggedItem(TaggedItemBase):
object_id = models.IntegerField(verbose_name=_('Object id')) object_id = models.IntegerField(verbose_name=_('Object id'), db_index=True)
content_type = models.ForeignKey(ContentType, verbose_name=_('Content type'), content_type = models.ForeignKey(ContentType, verbose_name=_('Content type'),
related_name="tagged_items") related_name="tagged_items")
content_object = GenericForeignKey() content_object = GenericForeignKey()
......
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