Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to JOIN three tables with Django ORM

queryset = Artist.objects.select_related(
    'songs', 'fans'
).filter(songs__title__icontains='love', fans__votes_casted__gte=100)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #JOIN #tables #Django #ORM
ADD COMMENT
Topic
Name
4+9 =