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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/web/pyload/templatetags/token.py b/module/web/pyload/templatetags/token.py
index fc190db73..e6117b839 100644
--- a/module/web/pyload/templatetags/token.py
+++ b/module/web/pyload/templatetags/token.py
@@ -5,9 +5,13 @@ register = template.Library()
if VERSION[:3] < (1,1,2):
+ class TokenNode(template.Node):
+ def render(self, content):
+ return ""
+
@register.tag()
- def csrf_token():
+ def csrf_token(parser, token):
"""
Return nothing, since csrf is deactivated in django 1.1
"""
- return ""
+ return TokenNode()