On 12/20/06, Austin Govella <[EMAIL PROTECTED]> wrote:
I have a list from a queryset: * foo * bar * twinky Is there an easy way to output that as: "foo, bar, and twinky" (There are handy functions for this in PHP, ColdFusion, and Rails, but my Google-fu fails for Python or Django.) Thanks, -- Austin Govella
http://www.djangoproject.com/documentation/templates/#join {{ your_list|join:", " }} Jonathan. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---