We know there is a values()
method of QuerySet
, when there is a foreign key (author, for example), it result like:
[{ 'author_id':3, ... }, ...]
I want a result like:
[{ 'author':{'name':'dave',...}, ... }, ...]
and I tried select_related
, but values()
won't show the detail of the foreign key, what can I do?