comparison gpp/news/views.py @ 205:da46e77cd804

Fixing #77, news tags were getting exploded by letter on some views/template tags.
author Brian Neal <bgneal@gmail.com>
date Sat, 01 May 2010 22:25:49 +0000
parents b4305e18d3af
children 1246a4f1ab4f
comparison
equal deleted inserted replaced
204:b4305e18d3af 205:da46e77cd804
28 from news.models import Story 28 from news.models import Story
29 from news.forms import AddNewsForm 29 from news.forms import AddNewsForm
30 from news.forms import SearchNewsForm 30 from news.forms import SearchNewsForm
31 from news.forms import SendStoryForm 31 from news.forms import SendStoryForm
32 32
33 NEWS_PER_PAGE = 2 33 NEWS_PER_PAGE = 5
34 34
35 ####################################################################### 35 #######################################################################
36 36
37 def create_paginator(stories): 37 def create_paginator(stories):
38 return DiggPaginator(stories, NEWS_PER_PAGE, body=5, tail=3, margin=3, padding=2) 38 return DiggPaginator(stories, NEWS_PER_PAGE, body=5, tail=3, margin=3, padding=2)