Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django query or condition for query parameters

from django.db.models import Q
q1 = User.objects.filter(Q(income__gte=5000) | Q(income__isnull=True))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #query #condition #query #parameters
ADD COMMENT
Topic
Name
4+1 =