Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding pagination to channels

  • Loading branch information...
commit b783efa74ba8887d9efb45a92fa1e2e784af33c5 1 parent 4d3d637
Julien Fache authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  zinnia/views/
2  zinnia/views/
@@ -2,12 +2,14 @@
from django.views.generic.list import ListView
from zinnia.models import Entry
+from zinnia.settings import PAGINATION
class EntryChannel(ListView):
"""View for displaying a custom selection of entries
based on a search pattern, useful for SEO/SMO pages"""
query = ''
+ paginate_by = PAGINATION
def get_queryset(self):
"""Override the get_queryset method to do the search"""
Please sign in to comment.
Something went wrong with that request. Please try again.