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