Trying to test a manytomany field in a model that will be user names.
Building that is simple enough in the model, and so is selecting the
users in the admin.

the problem is filtering a query to test the current logged in user
with the manytomany field to ensure they are listed.

ie:
filter(Q(is_private=False) | Q(approvedUsers = str(request.user))

where approvedUsers is the manytomany field
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to