add missing csrf tokens

This commit is contained in:
Andreas Zweili 2020-05-02 22:28:07 +02:00
parent 20b87a3e39
commit 1279311055
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{% block content %}
<div class="row mb-3">
<div class="col">
<form action="{% url 'computer_create' pk %}">
<form action="{% url 'computer_create' pk %}">{% csrf_token %}
<input type="submit" value="Add Computer" class="btn btn-primary">
</form>
</div>

View File

@ -4,7 +4,7 @@
{% block content %}
<div class="row mb-3">
<div class="col">
<form action="{% url 'device_create' pk %}">
<form action="{% url 'device_create' pk %}">{% csrf_token %}
<input type="submit" value="Add Device" class="btn btn-primary">
</form>
</div>