Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding pagination to channels

  • Loading branch information...
commit b783efa74ba8887d9efb45a92fa1e2e784af33c5 1 parent 4d3d637
Julien Fache authored May 28, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  zinnia/views/channels.py
2  zinnia/views/channels.py
@@ -2,12 +2,14 @@
2 2
 from django.views.generic.list import ListView
3 3
 
4 4
 from zinnia.models import Entry
  5
+from zinnia.settings import PAGINATION
5 6
 
6 7
 
7 8
 class EntryChannel(ListView):
8 9
     """View for displaying a custom selection of entries
9 10
     based on a search pattern, useful for SEO/SMO pages"""
10 11
     query = ''
  12
+    paginate_by = PAGINATION
11 13
 
12 14
     def get_queryset(self):
13 15
         """Override the get_queryset method to do the search"""

0 notes on commit b783efa

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