title: how to display the names of all books by a particular author in django
body: <p>The following code gives the number of books by a particular author with help of <strong>.count()</strong> present at the end. </p>
  
  <p>So my query is what should I replace <strong>.count()</strong> in the following code with,,to get the names/titles of all the books written by a particular author</p>
  
  <p>models.py::</p>
  
  <pre><code>class author(models.Model):
    def get_books_count(self):
        return book.objects.filter(author=self).count()  
  </code></pre>
  
  <p>my query arises after seeing question on this link below::</p>
  
  <p><a href="https://stackoverflow.com/questions/5927251/book-count-per-author-for-filtered-book-list-in-django/49802597">book count per author for filtered book list in django</a></p>