Answers for "filter django qs"

0

django q filter

# Basic Django Q-filter

from django.db.models import Q

queryset.filter(Q(foo='bar') | Q(foo='baz'))
Posted by: Guest on February-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language