Hello,
I'm just getting started, and I'm returning a many to many object in
my template:
p>{{ film.filmmakers.all }}
So it's displaying the list:
[<Filmmaker: John Smith>, <Filmmaker: Suzie Brown>]
Can anyone tell me how to return just a string of the names?
I'm still getting acclimated to python syntax.
Actually in a perfect world, it would be great to concatenate the
names, and add an 'and' b4 the last one, I imagine this is done
frequently?
Thanks,
Wendy
--
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.