Yes but you set it up through the Book model via the ForeignKey field that
points to Author. Set the related_name attribute to books.
On 22 Feb 2014 13:58, "Andy Matthews" <notifications@github.com> wrote:

> In article.md:
>
> > @@ -134,6 +136,7 @@ While this API view is pretty slick, it's a one for one with the database. Let's
> >  ```
> >  books = serializers.SerializerMethodField('get_books')
> >  ```
> > +[Steve: I believe there's an even easier way to serialize related models, using DRF's nested relationships, http://www.django-rest-framework.org/api-guide/relations#nested-relationships]
>
> Author model only has first_name and last_name properties. Should it have
> a books property?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/commadelimited/beginners-guide-to-django-rest-framework/pull/1/files#r9972740>
> .
>