Q filter with and django code example
Example: django q filter
# Basic Django Q-filter
from django.db.models import Q
queryset.filter(Q(foo='bar') | Q(foo='baz'))
# Basic Django Q-filter
from django.db.models import Q
queryset.filter(Q(foo='bar') | Q(foo='baz'))