On Feb 6, 9:25 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 07-Feb-08, at 10:45 AM, toomim wrote:
>
> compute and add these in your view - you need an extra field, say,  
> 'sep' which would be ',', '' or 'and' and in your template:
> <a href = {{var}}>whatever</a> {{sep}}

I don't understand, how do I get {{sep}} to change from ',' to 'and'
and then to the empty string in the last 2 iterations of the loop,
without using a bunch of if statements? (And since we're using
variables, a {% where %} clause?)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to