local changes from server
[prawokultury.git] / contact / utils.py
diff --git a/contact/utils.py b/contact/utils.py
new file mode 100644 (file)
index 0000000..497f954
--- /dev/null
@@ -0,0 +1,4 @@
+def deunicode(obj):
+    if isinstance(obj, unicode):
+        return obj.encode('utf-8')
+    return obj