Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

django query to return User whose first name starts with j or last name starts with h

User.objects.filter(first_name__contains='John', last_name__contains='Smith') 
                                   or
User.objects.filter(first_name__contains='J', last_name__contains='h') 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #query #return #User #starts #starts
ADD COMMENT
Topic
Name
1+2 =