Make product categories clickable.
This commit is contained in:
parent
0472769513
commit
2c5815982c
|
@ -42,7 +42,9 @@ Shop | {{ block.super }}
|
|||
<tr style="background-color: #cccccc">
|
||||
<td colspan="2">
|
||||
<strong>
|
||||
{{ product.category }}
|
||||
<a href="{% url 'shop:index' %}?category={{product.category.slug}}">
|
||||
{{ product.category }}
|
||||
</a>
|
||||
</strong>
|
||||
</td>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue