def index(page): objects = Category.select().order_by(Category.id) return paginate_view( 'admin/categories/index.html', objects, count=objects.count(), page_title=gettext('Categories'), objlistname='categories', per_page=100, )
def index(page): objects = StaticPage.select().order_by(StaticPage.name) return paginate_view( 'admin/staticpages/index.html', objects, count=objects.count(), page_title=gettext('Static pages'), objlistname='staticpages', per_page=100, )
def index(page): objects = NewsItem.select().order_by(NewsItem.id.desc()) return paginate_view( 'news/index.html', objects, count=objects.count(), page_title=gettext('News'), objlistname='news', per_page=100, )
def index(page): objects = NewsItem.select().order_by(NewsItem.id.desc()) return paginate_view( 'admin/news/index.html', objects, count=objects.count(), page_title=gettext('News'), objlistname='news', per_page=100, )
def index(page): objects = Character.select().order_by(Character.id) return paginate_view( 'admin/characters/index.html', objects, count=objects.count(), page_title=gettext('Characters'), objlistname='characters', per_page=100, )
def index(page): objects = Classifier.select().order_by(Classifier.id) return paginate_view( 'admin/classifications/index.html', objects, count=objects.count(), page_title=gettext('Classifications'), objlistname='classifications', per_page=100, )