5👍
First, you query by
orders = Order.objects.select_related('orderdetail__comment', 'lastupdate__date')
then, get values by
orders.values('name', 'orderdetail__comment', 'lastupdate__date')
Source:stackexchange.com
5👍
First, you query by
orders = Order.objects.select_related('orderdetail__comment', 'lastupdate__date')
then, get values by
orders.values('name', 'orderdetail__comment', 'lastupdate__date')