title: django-endless with class based views example
body: <p>I'm using Class Based Views for the first time. I'm having trouble understating how using class based views I would implement <a href="http://django-endless-pagination.readthedocs.org/en/latest/twitter_pagination.html" rel="noreferrer">django-endless-pagination</a> twitter styling paging.</p>
  
  <p>Could I have an example of how one would go about this? </p>
  
  <p>This is my view:</p>
  
  <pre><code>class EntryDetail(DetailView):
      """
      Render a "detail" view of an object.
      By default this is a model instance looked up from `self.queryset`, but the
      view will support display of *any* object by overriding `self.get_object()`.
      """
      context_object_name = 'entry'
      template_name = "blog/entry.html"
      slug_field = 'slug'
      slug_url_kwarg = 'slug'
  
      def get_object(self, query_set=None):
          """
          Returns the object the view is displaying.
  
          By default this requires `self.queryset` and a `pk` or `slug` argument
          in the URLconf, but subclasses can override this to return any object.
          """
          slug = self.kwargs.get(self.slug_url_kwarg, None)
          return get_object_or_404(Entry, slug=slug)
  </code></pre>