title: Django - querying multiple values using foreign keys
body: <p>I am new to Django and trying to understand the model relationships. I have two models:</p>
  <pre><code>class Author(models.Model):
      author_name = models.Charfield(max_length = 15)
      
  class Books(models.Model):
      book_name = models.CharField(max_length = 15)
      authors = models.ForeignKey(Author)
  </code></pre>
  <p>In my views.py I am accessing the records like this:</p>
  <pre><code>class BooksViewSet(APIView):
      def get(self, request):
          data = Books.objects.all()
  </code></pre>
  <p>Now suppose I have multiple books with multiple authors, how do I create an API which would include all the authors of the books? I think I need to filter out the values but am not exactly sure how it is done. Currently, I get only one author using the above views.py. Sorry if I missed the obvious. Thanks for your time in advance.</p>