0

Hi am struggling using the greater than sign inside the html template. am using python 3.7.2 and django 1.8.6 I cant execute this code here gives an error

{% extends "base.html" %}
{% block Content %}
<h1>Tags</h1>
{% for instance in object_list %}
    <li><a href='{{ instance.get_absolute_url }}'>{{ instance.title }}</a> ({{ instance.products.count }} product{% if instance.products.count > 1 %}s{% endif %})</li>
{% empty %}
    <li>No Tags yet.</li>
{% endfor %}
</ul>

{% endblock %}

So the > 1 is the problem here help out

cipher
  • 373
  • 7
  • 20

0 Answers0