Sorry if the question sounds weird. I am just wondering if there is possible to make new queryset when I already have a queryset.
For example here...
everyone = User.objects.filter(is_active=True) # this would of course return all users that's active
not_deleted = User.objects.filter(is_active=True, is_deleted=False) # return user that's active and not deleted
is_deleted = User.objects.filter(is_active=True, is_deleted=True) # return user that's active and is already deleted
What my question is...for not_deleted and is_deleted they both have active is true with is the same as everyone is there a possible way to use everyone and then somehow filter out is_deleted=True or is_deleted=False? So then I believe the querying would be faster and better if this is possible right?
All three variables everyone, not_deleted and is_deleted will then be used for something else.
Hopefully I made my question quiet clear.
Thanks in advance.