X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/a55d79e4c27c893841712145e38d4a4a61e04b20..8ff28864d3e4ad403e1a994895dbf819fe1c3c10:/contact/utils.py?ds=sidebyside 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