filter Q in django models and or 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'))