I am asking this question again (it was asked back in 2009),
We know there is a
values()
method of QuerySet, when there is a foreignkey (author, for example), it result like:[{ 'author_id':3, ... }, ...]
I want a result like:
[{ 'author':{'name':'dave',...}, ... }, ...]
Has something changed in the newer versions of Django?
I want to convert the query set into a combination of lists and dictionnaries, is it possible?
I will then take this object and place it into a bigger object to serialize it. It is the reason why I don't want to serialize it right away.