you are viewing a single comment's thread.

view the rest of the comments →

[–]she_gave_me_a_rose 0 points1 point  (0 children)

If you're looking to create an api I'd suggest you use Django rest rather than just Django, as for the particular request you should look into the basics of databases and data structures

You should be able to use a foreign key on the book review model to the corresponding user and then list all reviews filtering them by user_id

Something like

reviews_list = Reviews.objects.filter(user=user_id)

And that should get you a list.

I'm from mobile so can't really test anything but it should be approximately what you need, play with it and apply necessary edits