Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django filter on related field

len(Collection.objects.filter(item__flag=True).distinct())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #filter #related #field
ADD COMMENT
Topic
Name
7+3 =