forked from expo/troggle
Try to fake crsf tags so site works on djang0 1.1
This commit is contained in:
parent
af34cdb498
commit
326af86b84
10
core/templatetags/csrffaker.py
Normal file
10
core/templatetags/csrffaker.py
Normal file
@ -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 ""
|
Loading…
Reference in New Issue
Block a user