X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..f6a30b5b55786e17e583232526ababe164cccc30:/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