Answers for "django filter Q or"

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
7

objects.filter django

>>> Entry.objects.filter(blog_id=4)
Posted by: Guest on September-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language