X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/71b0bebea369ab07e2d1a64a2376aba1f98c5a6f..0d97f4ad5dae65bb8de8ff1afef912dca820fa2d:/questions/models.py diff --git a/questions/models.py b/questions/models.py index 278071e..43c6cc5 100644 --- a/questions/models.py +++ b/questions/models.py @@ -9,7 +9,7 @@ from django.utils.translation import ugettext_lazy as _ from markupfield.fields import MarkupField from taggit.models import TagBase, GenericTaggedItemBase from taggit_autosuggest.managers import TaggableManager -from fnpdjango.utils.text.slughifi import slughifi +from slugify import slugify class TagCategory(models.Model): @@ -26,7 +26,7 @@ class TagCategory(models.Model): class Tag(TagBase): def slugify(self, tag, i=None): - slug = slughifi(tag) + slug = slugify(tag) if i is not None: slug += "_%d" % i return slug