From 30114f34e87eeeb37ecac3176e6fff62519ebb6e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 23 Aug 2010 14:41:38 +0200 Subject: better django compatbility --- module/web/pyload/templatetags/token.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 module/web/pyload/templatetags/token.py (limited to 'module/web/pyload') 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 "" -- cgit v1.2.3