Hi Guys,

I have a report that connects to a db and draws users details. What i need
help with is that for example in my template i need numbering to start from
1 - total entrants eg

1. name , surname etc...
2. name ...

{% if comp_list %}
{% for comp in comp_list %} 

<td>{{ comp.id }}</td> # Although this line would do the trick i cant use
the id in this circumstance

I also tried this {{ forloop.counter }} # which also does the trick except i
have pagination so when i go to the next page then the numbering starts from
1 again instead of 6 


{% endfor %}
{% endif %}

any help would be greatly appreciated thanks
-- 
View this message in context: 
http://www.nabble.com/template-numbering-help-tf4769303.html#a13642034
Sent from the django-developers mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to