On Dec 19, 2007 2:20 AM, Julien <[EMAIL PROTECTED]> wrote: ... > So far, my query looks like this: > (Thread.objects.filter(message__sender=request.user) | > Thread.filter(message__recipients=request.user)).distinct() > > I'm not sure about the "message__recipients=request.user". > Do you know how the query should be?
AFAIK, that's correct. But you have some syntax errors. Fixed here: http://dpaste.com/28606/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---