Advertisement
Guest User

Untitled

a guest
Jun 4th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. inactive_recipients_filter = Q(recipient__is_active=True) | Q(recipient__isnull=True)
  2. queryset.filter(inactive_recipients_filter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement