summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload')
-rw-r--r--module/web/pyload/templatetags/token.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/web/pyload/templatetags/token.py b/module/web/pyload/templatetags/token.py
new file mode 100644
index 000000000..fc190db73
--- /dev/null
+++ b/module/web/pyload/templatetags/token.py
@@ -0,0 +1,13 @@
+
+from django import VERSION
+from django import template
+register = template.Library()
+
+if VERSION[:3] < (1,1,2):
+
+ @register.tag()
+ def csrf_token():
+ """
+ Return nothing, since csrf is deactivated in django 1.1
+ """
+ return ""