Skip to content
Browse files

adding pagination to channels

  • Loading branch information...
1 parent 4d3d637 commit b783efa74ba8887d9efb45a92fa1e2e784af33c5 @Fantomas42 committed May 28, 2012
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"""

0 comments on commit b783efa

Please sign in to comment.
Something went wrong with that request. Please try again.