From: Radek Czajka Date: Tue, 19 Nov 2013 11:33:06 +0000 (+0100) Subject: Fix slughifi unicodization. X-Git-Tag: 0.1.8 X-Git-Url: https://git.mdrn.pl/fnpdjango.git/commitdiff_plain/da44468d8d89a51d8001492e2d8b84d4a4541301?hp=34b069d8817145eea3ac8fbe432a1ac70d268c67 Fix slughifi unicodization. --- 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 diff --git a/setup.py b/setup.py index 2dadda5..759226f 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_trees(package_dir, paths): setup( name='fnpdjango', - version='0.1.7', + version='0.1.8', author='Radek Czajka', author_email='radoslaw.czajka@nowoczesnapolska.org.pl', url = '',