1👍
I think you’re looking for select_related.
c = C.objects.select_related('b__a').get()
This will fetch both the b and a instances that were related to it.
Source:stackexchange.com
1👍
I think you’re looking for select_related.
c = C.objects.select_related('b__a').get()
This will fetch both the b and a instances that were related to it.