from django.db.models import Q
User.objects.filter(Q(income__gte=5000) | Q(income__isnull=True))
from django.db.models import Q
q1 = User.objects.filter(Q(income__gte=5000) | Q(income__isnull=True))
q2 = User.objects.filter(income__gte=5000) | User.objects.filter(income__isnull=True)
queryset = User.objects.filter(
first_name__startswith='R'
) | User.objects.filter(
last_name__startswith='D'
)