In my template I have the following info: {% for a in mychoice %} {{ a.style.manufacturer }} - {{ a.style.collection }} - {{ a.style }} - {{ a.choice.size }} - ${{ a.choice.price }}.00 - <a href="/rugs/cart/ deleteitem/0">Delete Item</a>
This works except for the very last value which is 0. Obviosly these needs to be the position of the list element. 0,1,2,3 etc.... /////////////////// Here is what I thought I could do (add the enumerate function): {% for i, a in enumerate(mychoice) %} {{ a.style.manufacturer }} - {{ a.style.collection }} - {{ a.style }} - {{ a.choice.size }} - ${{ a.choice.price }}.00 - <a href="/rugs/cart/ deleteitem/{{ i }}">Delete Item</a> However, when I do this I get the error: Could not parse the remainder: '(mychoice)' from 'enumerate(mychoice)' ///////////////////// Does anybody know how I can get the list position so I can put it in the url? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---