Hi All,
I have a manager which is used also as related manager:
class ReleaseManager(models.Manager):
use_for_related_fields = True
def all(self):
q = self.get_query_set()
q.query.add_q(Q(enabled=True) & Q(project__enabled=True))
return q
I need to add another filter to that query, but it depends on the
current logged user, is it possible?
--
Kind Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---