1. Guilherme Gondim
  2. django-galeria

Commits

Guilherme Gondim  committed 6eb8504

paginate PictureList view by 16 items

  • Participants
  • Parent commits 0283f49
  • Branches default

Comments (0)

Files changed (1)

File galeria/views.py

View file
 class PictureList(generic.list.ListView):
     model = Picture
     queryset = Picture.objects.public()
+    paginate_by = 16