Display uncategorized products

This commit is contained in:
Skia
2016-09-29 16:19:05 +02:00
parent 52184c4012
commit ddceb82abf
3 changed files with 117 additions and 96 deletions

View File

@ -18,6 +18,12 @@
{% endfor %}
</ul>
{% endfor %}
<h4>{% trans %}Uncategorized{% endtrans %}</h4>
<ul>
{% for p in product_list.filter(product_type=None).all().order_by('name') %}
<li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }}</a></li>
{% endfor %}
</ul>
{% else %}
{% trans %}There is no products in this website.{% endtrans %}
{% endif %}