X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/a55d79e4c27c893841712145e38d4a4a61e04b20..2e4d149a0648f0332883e7d775000b70193819da:/contact/utils.py diff --git a/contact/utils.py b/contact/utils.py old mode 100755 new mode 100644 index e69de29..497f954 --- a/contact/utils.py +++ b/contact/utils.py @@ -0,0 +1,4 @@ +def deunicode(obj): + if isinstance(obj, unicode): + return obj.encode('utf-8') + return obj