Your Ad Here

Sunday, January 8, 2012

Re: Joining Tables



Thanks Jonas, the statements you had provided would give me a list of users who belong that group, but how can I retrieve the photos of those users? Actually I was looking for a single statement which would join all these tables and returns the data based on the Group ID.


Getting a row by ID:

Group.objects.get(pk=group_id)

0 comments:

Post a Comment