.pk not .id
This commit is contained in:
parent
5f4889e132
commit
452804dca2
|
@ -60,7 +60,7 @@ Here you can see your orders and available products in the shop.
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if product.is_available %}
|
{% 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" %}
|
{% bootstrap_button "Add to order" href=product_detail_url button_class="btn-primary" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
N/A
|
N/A
|
||||||
|
|
Loading…
Reference in a new issue