I'm using this in a template to get a list of items in the list.
<ul>
{% for item in list %}
<li>{{ item.var }}</li>
{% endfor %}
</ul>
The problem is that I get duplicate values when I do this. So if var1
appears in my database more than once, I get it as many times as it
appears. I looked at using the distinct() function but could not quite
figure out how to get it to work the way I want. Any suggestions?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---