fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix gunicorn sample upload failing when optional setting 'django_root_path' is not set
[fnpdjango.git]
/
fnpdjango
/
utils
/
text
/
slughifi.py
diff --git
a/fnpdjango/utils/text/slughifi.py
b/fnpdjango/utils/text/slughifi.py
index
fe5c9e3
..
938049e
100644
(file)
--- 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