I am working with Django 1.6 and have a problem statement as follows:
- Suppose there are 2 models, Author and Book, so there is obvious one-to-many relation for the author and book model.
- Now, I need to display the Author's data such that, there is one row for each Book he has written.
- As the UI part is in backbone js, its hard for me to iterate/display by modifying things in js.
So, would like to have this being done at the backend itself. Data to be displayed like:
Authors name|Authors Qualification|Authors age|Book|Price
So, I have a Queryset which has , and within this, if i fetch the Books he has published, it gives me all the books published by him. Instead i want them one by one.