diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-23 15:31:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-23 15:31:41 +0200 |
commit | 4a6dfcb759cb6da970dac55a0b9a116114ce71e7 (patch) | |
tree | 15bf03e46bba55e37b6e2ee8be19ff6992df8a62 /module/web/pyload | |
parent | django 1.1 fix (diff) | |
download | pyload-4a6dfcb759cb6da970dac55a0b9a116114ce71e7.tar.xz |
fixes for django 1.1
Diffstat (limited to 'module/web/pyload')
-rw-r--r-- | module/web/pyload/templatetags/token.py | 8 |
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() |