On Dec 14, 2007 2:08 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> My problem is how to retrieve all appointment details in a view for
> the current user, suppose he has got the user_id = 1.

Appointment.objects.filter(appointmentparticipant__participant_user__pk=request.user.id)


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to