1👍
✅
You just have to use the double underscore notation like so:
loans = Loan.objects.filter(id=current_loan)
.prefetch_related('consists_of_book', 'consists_of_book__written_by_author')
👤Tim
Source:stackexchange.com