Hi Kev,

> Im a bit confused with django model api and cannot seem to figure out
> how to do:
>
> SQL WHERE (user == username AND friend == friend) OR (user == friend
> AND friend == user).

Please see the following piece of documentation:
  
http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects

Regards,
Friðrik Már
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to