Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter parent based on related child name values

# filter parent based on related child name values
Parent.objects.filter(related_model__id__isnull=False)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #parent #based #related #child #values
ADD COMMENT
Topic
Name
1+8 =