fix: update delete review URL to use review ID instead of product ID

This commit is contained in:
2026-05-26 10:35:17 +02:00
parent 2024e2f90c
commit ac9efaaf91
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@
{% elif user_has_review %}
<div class="ms-auto">
<a href="{% url 'add_review' product.id %}" class="btn btn-sm btn-outline-primary">Editar mi valoración</a>
<form method="post" action="{% url 'delete_review' product.id %}" style="display:inline;">
<form method="post" action="{% url 'delete_review' user_review_id %}" style="display:inline;">
{% csrf_token %}
<button type="submit" class="btn btn-sm btn-outline-danger" onclick="return confirm('¿Eliminar esta valoración?');">Eliminar</button>
</form>