Thanks, Malcom.

I think I figured out what I need to do:

if request.user.is_anonymous():
  return posts which are marked "public" (easy)
if request.user.is_logged_in(or whatever the method is):
  return posts which are marked "protected" (easy)
  also return posts which are marked "restricted" (not so easy,
  needs to check through a reference)
author__friends__contains=current_user
  also need to return posts which are marked "private" (fairly easy...)
  author__exact=current_user

I think I should be able to select then .filter().filter().filter() O.o

-Sam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to