2👍
✅
You can use select_related.
books = Book.objects.filter(genre="fiction").select_related("author")
This will fetch the db only one time and auto load the author
model inside the book
.
Source:stackexchange.com