summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-23 14:41:38 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-23 14:41:38 +0200
commit30114f34e87eeeb37ecac3176e6fff62519ebb6e (patch)
treed14b2e7f3977ba9c1944394d2b07c633862daf54 /module/web/pyload
parentextern cnl (diff)
downloadpyload-30114f34e87eeeb37ecac3176e6fff62519ebb6e.tar.xz
better django compatbility
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 ""