diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/csrffaker.py | 9 | ||||
-rw-r--r-- | templates/newlogbookentry.html | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/csrffaker.py b/templates/csrffaker.py new file mode 100644 index 0000000..86b1318 --- /dev/null +++ b/templates/csrffaker.py @@ -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 "" diff --git a/templates/newlogbookentry.html b/templates/newlogbookentry.html index 099ae2b..4e8eda6 100644 --- a/templates/newlogbookentry.html +++ b/templates/newlogbookentry.html @@ -1,4 +1,5 @@ {% extends "base.html" %}
+{% load csrffaker %}
{% block title %}Logbook {{logbookentry.id}}{% endblock %}
{% block head %}
<script>
|