From 326af86b8453e38afa392e01ee74d6b24e482b53 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Mon, 2 May 2011 03:20:31 +0100 Subject: [PATCH] Try to fake crsf tags so site works on djang0 1.1 --- core/templatetags/csrffaker.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 core/templatetags/csrffaker.py diff --git a/core/templatetags/csrffaker.py b/core/templatetags/csrffaker.py new file mode 100644 index 0000000..824085d --- /dev/null +++ b/core/templatetags/csrffaker.py @@ -0,0 +1,10 @@ +import django +from django import template + +register = template.Library() +if django.VERSION[0] >=1 and django.VERSION[1] > 1: + pass +else: + + @register.tag + def csrf_token(parser, token): return ""