X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..c12237ab5666f7bc2e752ccfd874926dd844d186:/fnpdjango/utils/text/slughifi.py 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