.pk not .id

This commit is contained in:
Thomas Steen Rasmussen 2016-05-14 16:24:03 +02:00
parent 5f4889e132
commit 452804dca2

View file

@ -60,7 +60,7 @@ Here you can see your orders and available products in the shop.
</td>
<td>
{% if product.is_available %}
{% url 'shop:product_detail' pk=product.id as product_detail_url %}
{% url 'shop:product_detail' pk=product.pk as product_detail_url %}
{% bootstrap_button "Add to order" href=product_detail_url button_class="btn-primary" %}
{% else %}
N/A