If I have table like this represented in django model
person
------
id
name
worker
------
personid
jobid
job
---
id
desc
wage
w=Worker.objects.filter(<some sort of filter)
now I want all persons that are related in w
w is given I can not use that statement.
eventually I want to return a json string that represents a dict
with idperson as key and {"job":jobid,"wage":wage} as
one value in list of jobs for that key
that's an example I really look for a general way to do so.
--
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.