Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed attribute value display in template

  • Loading branch information...
commit 00ad5feaf6aba12634e63fab9548ee5508fe81a1 1 parent 52fd1a1
@codeinthehole codeinthehole authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 oscar/templates/catalogue/detail.html
View
6 oscar/templates/catalogue/detail.html
@@ -99,10 +99,10 @@
{% if product.is_group %}Product group{% else %}{% if product.is_variant %}Variant{% else %}Stand-alone{% endif %}{% endif %}
</td>
</tr>
- {% for attribute in product.attributes.all %}
+ {% for av in product.attribute_values.all %}
<tr>
- <th>{{ attribute.type.name }}</th>
- <td>{{ attribute.value }}</td>
+ <th>{{ av.attribute.name }}</th>
+ <td>{{ av.value }}</td>
</tr>
{% endfor %}
<tr>
Please sign in to comment.
Something went wrong with that request. Please try again.