This is a fairly simple patch, basically it does what the error message
told me to do:
"add In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL."
Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org>
<input type="hidden" name="form" value="bundle"/>
<table class="form">
<input type="hidden" name="form" value="bundle"/>
<table class="form">
<td style="text-align: center;">
<form method="post"
onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
<td style="text-align: center;">
<form method="post"
onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
{{ bundle.delete_form.as_p }}
<input type="image"
src="/images/16-em-cross.png" width="16" height="16" alt="delete"
{{ bundle.delete_form.as_p }}
<input type="image"
src="/images/16-em-cross.png" width="16" height="16" alt="delete"
<td>
<form action="{% url patchwork.views.patch patch=patch.id %}"
method="post">
<td>
<form action="{% url patchwork.views.patch patch=patch.id %}"
method="post">
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<span class="errors">{{createbundleform.errors}}</span>
{% endif %}
<form method="post">
<span class="errors">{{createbundleform.errors}}</span>
{% endif %}
<form method="post">
<input type="hidden" name="action" value="createbundle"/>
{{ createbundleform.name }}
<input value="Create" type="submit"/>
<input type="hidden" name="action" value="createbundle"/>
{{ createbundleform.name }}
<input value="Create" type="submit"/>
<td>Add to bundle:</td>
<td>
<form action="{% url patchwork.views.bundle.setbundle %}" method="post">
<td>Add to bundle:</td>
<td>
<form action="{% url patchwork.views.bundle.setbundle %}" method="post">
<input type="hidden" name="action" value="add"/>
<input type="hidden" name="patch_id" value="{{ patch.id }}"/>
<select name="name"/>
<input type="hidden" name="action" value="add"/>
<input type="hidden" name="patch_id" value="{{ patch.id }}"/>
<select name="name"/>
<td>Archive:</td>
<td>
<form method="post">
<td>Archive:</td>
<td>
<form method="post">
<input type="hidden" name="action" value="archive"/>
<input type="submit" value="Archive"/>
</form>
<input type="hidden" name="action" value="archive"/>
<input type="submit" value="Archive"/>
</form>
{% if order.editable %}
<td class="patchlistreorder">
<form method="post" id="reorderform">
{% if order.editable %}
<td class="patchlistreorder">
<form method="post" id="reorderform">
<input type="hidden" name="form" value="reorderform"/>
<input type="hidden" name="order_start" value="0"/>
<span id="reorderhelp"></span>
<input type="hidden" name="form" value="reorderform"/>
<input type="hidden" name="order_start" value="0"/>
<span id="reorderhelp"></span>
{% endif %}
<form method="post">
{% endif %}
<form method="post">
<input type="hidden" name="form" value="patchlistform"/>
<input type="hidden" name="project" value="{{project.id}}"/>
<table class="patchlist" id="patchlist">
<input type="hidden" name="form" value="patchlistform"/>
<input type="hidden" name="project" value="{{project.id}}"/>
<table class="patchlist" id="patchlist">
<div class="patchform patchform-properties">
<h3>Patch Properties</h3>
<form method="post">
<div class="patchform patchform-properties">
<h3>Patch Properties</h3>
<form method="post">
<table class="form">
<tr>
<th>Change state:</th>
<table class="form">
<tr>
<th>Change state:</th>
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<dd class="errors">{{createbundleform.non_field_errors}}</dd>
{% endif %}
<form method="post">
<dd class="errors">{{createbundleform.non_field_errors}}</dd>
{% endif %}
<form method="post">
<input type="hidden" name="action" value="createbundle"/>
{% if createbundleform.name.errors %}
<dd class="errors">{{createbundleform.name.errors}}</dd>
<input type="hidden" name="action" value="createbundle"/>
{% if createbundleform.name.errors %}
<dd class="errors">{{createbundleform.name.errors}}</dd>
<td>Add to bundle:</td>
<td>
<form method="post">
<td>Add to bundle:</td>
<td>
<form method="post">
<input type="hidden" name="action" value="addtobundle"/>
<select name="bundle_id"/>
{% for bundle in bundles %}
<input type="hidden" name="action" value="addtobundle"/>
<select name="bundle_id"/>
{% for bundle in bundles %}
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
{% if patches %}
<form method="post">
{% if patches %}
<form method="post">
<table class="patchlist">
<tr>
{% if patchform %}
<table class="patchlist">
<tr>
{% if patchform %}
{% ifnotequal user.email email.email %}
<form action="{% url patchwork.views.user.unlink person_id=email.id %}"
method="post">
{% ifnotequal user.email email.email %}
<form action="{% url patchwork.views.user.unlink person_id=email.id %}"
method="post">
<input type="submit" value="Unlink"/>
</form>
{% endifnotequal %}
<input type="submit" value="Unlink"/>
</form>
{% endifnotequal %}
<tr>
<td colspan="2">
<form action="{% url patchwork.views.user.link %}" method="post">
<tr>
<td colspan="2">
<form action="{% url patchwork.views.user.link %}" method="post">
{{ linkform.email }}
<input type="submit" value="Add"/>
</form>
{{ linkform.email }}
<input type="submit" value="Add"/>
</form>
<h2>Settings</h2>
<form method="post">
<h2>Settings</h2>
<form method="post">
<table class="form">
{{ profileform }}
<tr>
<table class="form">
{{ profileform }}
<tr>
{% endif %}
<form action="{% url patchwork.views.user.link %}" method="post">
{% endif %}
<form action="{% url patchwork.views.user.link %}" method="post">
{{linkform.email.errors}}
Link an email address: {{ linkform.email }}
</form>
{{linkform.email.errors}}
Link an email address: {{ linkform.email }}
</form>
{% block body %}
<form method="post">
{% block body %}
<form method="post">
<table class="form loginform">
<tr>
<th colspan="2" class="headerrow">login</th>
<table class="form loginform">
<tr>
<th colspan="2" class="headerrow">login</th>
<li>update the state of your own patches</li>
</ul>
<form method="post">
<li>update the state of your own patches</li>
</ul>
<form method="post">
<table class="form registerform">
<tr>
<th colspan="2" class="headerrow">register</th>
<table class="form registerform">
<tr>
<th colspan="2" class="headerrow">register</th>