from django.db.models import Q q1 = User.objects.filter(Q(income__gte=5000) | Q(income__isnull=True))