fix url for order

This commit is contained in:
Ivan Hörler 2018-02-26 20:56:18 +01:00
parent ffcf6e6ba5
commit 736c5d4ba3
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<form id="checkout_form" action="order/" method="post"> <form id="checkout_form" action="{% url 'order' %}" method="post">
{% csrf_token %} {% csrf_token %}
{{ checkout_form.as_p }} {{ checkout_form.as_p }}
<input type="submit" value="Order" class="btn btn-success" role="button"/> <input type="submit" value="Order" class="btn btn-success" role="button"/>

View File

@ -395,7 +395,7 @@ def checkout(request):
def order(request): def order(request):
return render(request, 'webshop/orders.html', return render(request, 'webshop/order.html',
{ {
}) })