+from taggit.models import TagBase, GenericTaggedItemBase
+from taggit_autosuggest.managers import TaggableManager
+from fnpdjango.utils.text.slughifi import slughifi
+
+
+class Tag(TagBase):
+ def slugify(self, tag, i=None):
+ slug = slughifi(tag)
+ if i is not None:
+ slug += "_%d" % i
+ return slug
+
+ class Meta:
+ verbose_name = _("Tag")
+ verbose_name_plural = _("Tags")
+
+
+class TagItem(GenericTaggedItemBase):
+ tag = models.ForeignKey(Tag, related_name="items")
+