Use url templatetag to load posting urls

This commit is contained in:
Mouse Reeve
2021-10-14 15:56:34 -07:00
parent d5b247b905
commit 1f6f543847
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{% if request.user.is_authenticated %}
<span class="is-sr-only">{% trans "Leave a rating" %}</span>
<div class="block">
<form class="hidden-form" name="rate" action="/post/rating" method="POST">
<form class="hidden-form" name="rate" action="{% url 'create-status' 'rating' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="user" value="{{ request.user.id }}">
<input type="hidden" name="book" value="{{ book.id }}">