Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inactive_recipients_filter = Q(recipient__is_active=True) | Q(recipient__isnull=True)
- queryset.filter(inactive_recipients_filter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement