I have a join table:
class ReviewTag(models.Model):
review = models.ForeignKey(Review)
tag = models.ForeignKey(Tag)
I do the following to get a list of ReviewTag objects:
review.reviewtag_set.all()
If Tag has an attribute called ‘name’. How do i create a list of names from the list of objects?
or
or
The development version of django has support for
valuesacross JOINshttp://docs.djangoproject.com/en/dev/ref/models/querysets/#values
Which would let you do
Good stuff.