There is Q
objects that allow to complex lookups. Example:
from django.db.models import Q
User.objects.filter(Q(email=email) | Q(is_active=True))
There is Q
objects that allow to complex lookups. Example:
from django.db.models import Q
User.objects.filter(Q(email=email) | Q(is_active=True))