On 06-12-11 06:43, wgis wrote:
But then I would have something like
(Carrots, Flavor,2.0)
as the result
instead of the desired
(Carrots, Flavour, 2.0)
(Carrots, Smell, 0.0)
(Carrots, Usability, 0.0)
(Carrots, Size, 0.0)
That's the same, right? At least,
Vote.objects.filter(thing=carrot).values_list('thing', 'context', 'vote)
should return a list of those lists.
What do you get with a plain Vote.objects.filter(thing=carrot) ?
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
[email protected] http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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.