mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-30 19:44:46 +00:00
added paginate_by attr to example blogListView
This commit is contained in:
parent
6473fbea4d
commit
32f5c93c84
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ from .models import Post
|
|||
class BlogListView(ListView):
|
||||
model = Post
|
||||
template_name = 'blog_list.html'
|
||||
paginate_by = 10
|
||||
|
||||
|
||||
class BlogDetailView(DetailView):
|
||||
|
|
|
|||
Loading…
Reference in a new issue