Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django query or condition for query parameters

queryset = User.objects.filter(
        first_name__startswith='R'
    ) | User.objects.filter(
    last_name__startswith='D'
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #query #condition #query #parameters
ADD COMMENT
Topic
Name
4+4 =