Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

prefetch_related list django

# Use the magic syntax with "*" to expand the list
Knight.objects.all().prefetch_related(*selected_attributes)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #django
ADD COMMENT
Topic
Name
1+9 =