X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..56089af0e8c5732caaa777ee0691d9ae7a557d31:/fnpdjango/utils/text/slughifi.py?ds=sidebyside diff --git a/fnpdjango/utils/text/slughifi.py b/fnpdjango/utils/text/slughifi.py index fe5c9e3..938049e 100644 --- a/fnpdjango/utils/text/slughifi.py +++ b/fnpdjango/utils/text/slughifi.py @@ -39,7 +39,7 @@ def slughifi(value, do_slugify=True, overwrite_char_map={}): """ # unicodification - if type(value) != UnicodeType: + if not isinstance(value, unicode): value = unicode(value, 'utf-8', 'ignore') # overwrite chararcter mapping