2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 13:37:09 +00:00

Attempt to get csrf tag working in django 1.1-

This commit is contained in:
Martin Green
2011-05-02 03:11:17 +01:00
parent 835680f0ee
commit 52eb4030d0
3 changed files with 13 additions and 1 deletions

9
templates/csrffaker.py Normal file
View File

@@ -0,0 +1,9 @@
import django
if django.VERSION[0] >=1 and django.VERSION[1] > 1:
pass
else:
from django import template
register = template.Library()
@register.tag
def csrf_token(parser, token): return ""