Tuesday, 15 April 2014

Django Mailbox Query -



Django Mailbox Query -

so writing page gets threads between authenticated user , other users , i'm not sure on efficient way of doing so. in theory:

it needs records user_from or user_to authenticated user order recent obviously needs 1 message between user_from , user_to

i'm guessing best utilize grouping 1 mail service , i'm not sure how i'd go using 2 fields grouping. heres have far:

message.objects.filter(q(user_to=request.user) | q(user_from=request.user)).order_by('-sent')

is possible in django? alternative unique messages to/from other users. okay not showing message

django

No comments:

Post a Comment