Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django models filter(x in list)

modelname.objects.filter(pk__in=[1, 4, 7])
 
PREVIOUS NEXT
Tagged: #django #models
ADD COMMENT
Topic
Name
1+8 =