On 19 nov, 11:09, Sithembewena Lloyd Dube <[email protected]> wrote: > Hi everyone, > > I have a template where Django is spitting out blog tags followed by a ',' > when the tag is not the final one in the loop. > > {% if not forloop.last %}, {% endif %} > > Strangely, I am still seeing tag1, tag2, tag3,
This shouldn't happen, but since such an obvious bug would have been spotted long ago, I guess you do have an "empty" element (for whatever definition of "empty" apply here) at the end of your list or queryset. So better to first check your data... > -- > Regards, > Sithembewena Lloyd Dubehttp://www.lloyddube.com -- 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.

