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