X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/a55d79e4c27c893841712145e38d4a4a61e04b20..bf852b7e6f2828e0ef53440b69247e10b782e8cd:/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