title: is_paginated not working properly for class based views in Django
body: <p>book_list.html </p>
  
  <pre><code>{% extends "base.html" %}
  {% block content %}
  &lt;h3&gt; Available books &lt;/h3&gt;
  {% if book_list %}
  &lt;ul&gt;
      {% for book in book_list %}
       &lt;li&gt; &lt;a href = "{{ book.get_absolute_url }}"&gt;{{book.title }}&lt;/a&gt;    &lt;small&gt; by {{book.author }}&lt;/small&gt;&lt;/li&gt;
       &lt;p&gt;{{ book.summary }}
      {% endfor %}
  &lt;ul&gt;
  {% endif %}
  {% if is_paginated %}
    &lt;div class="pagination"&gt;
        &lt;span class="page-links"&gt;
            {% if page_obj.has_previous %}
                &lt;a href="{{ request.path }}?page={{ page_obj.previous_page_number }}"&gt;previous&lt;/a&gt;
            {% endif %}
            &lt;span class="page-current"&gt;
                Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
            &lt;/span&gt;
            {% if page_obj.has_next %}
                &lt;a href="{{ request.path }}?page={{ page_obj.next_page_number }}"&gt;next&lt;/a&gt;
            {% endif %}
        &lt;/span&gt;
    &lt;/div&gt;
  {% else %}
        &lt;h4&gt; pagination not working&lt;/h4&gt;
  {% endif %}
  {% endblock %}
  </code></pre>
  
  <p>class in views.py :</p>
  
  <pre><code>class BookListView(generic.ListView):
    model = Book
    paginate_by = 2
    queryset =Book.objects.all()
  </code></pre>
  
  <p>urls.py :</p>
  
  <pre><code> urlpatterns =[
   url('^$',views.index, name ='index'),  # matching with an empty string 
   url('^books/$',views.BookListView.as_view(),name ='books'), #the one to which I am adding the paginator
   url('^book/(?P&lt;pk&gt;\d+)/$',views.BookDetailView.as_view(),name='book-detail'),
  
  ]
  </code></pre>
  
  <p>Book model : </p>
  
  <pre><code>class Book(models.Model):
    title=models.CharField(max_length=100)
    author = models.ForeignKey('Author',on_delete=models.SET_NULL,null = True)
    summary = models.TextField(max_length=200,help_text="Enter the description")
    isbn = models.CharField('ISBN',max_length=13 ,help_text='13 Character &lt;a href="https://www.isbn-international.org/content/what-isbn"&gt;ISBN number&lt;/a&gt;' )
    genre = models.ManyToManyField(Genre,help_text = 'selct a genre for this book')
  
    class Meta:
       ordering =["title"]
    def __str__(self):
       return self.title
  
    def get_absolute_url(self):
       return reverse('book-detail',args=[str(self.id)] )  
  </code></pre>
  
  <p>The book_list gets rendered perfectly, the problem is with the paginator, the is_paginated condition is not working and it executes the else statement, I have been trying for more than 3 hours, but couldn't find a solution, What Am I missing here ?<br>
  Django version : 1.11.2
  Python : 3.5</p>
  
  <p>Edit :
   update 1: The problem was the paginate_by value was two, and the total items to display was also two hence it didn't initiate the is_paginated tag,It worked fine when I added one item more than paginate_by value.</p>