{% extends "core/base.html" %} {% block content %}

Inventory

{% for c_name, objects in class_list %}

{{ c_name }}

{% for object in objects %}

{{object.item.name}}

{{object.item.description}}

You own {{object.quantity}} of this item.

{% with object.get_attributes_display_list as attributes_display_list %} {% if attributes_display_list|length > 0 %} {% endif %} {% endwith %} {% if object.item.image %} {{object.item.image_alt}} {% endif %} {% if object.item.price and object.item.credit_price == 0 %}

{% csrf_token %} {{ sell_form }}

{% endif %}
{% empty %} You have no items of this type. {% endfor %} {% endfor %}
{% endblock content %}