oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
425 stars 82 forks source link

Pagination functionality #39

Closed luisza closed 7 years ago

luisza commented 7 years ago

Pagination is supported for list view using paginate_by and paginate_template, the default pagination value is:

For example paginate custumers using enumeration paginate

class Myclass(CRUDView):
    model = Customer
    paginate_by = 5
    paginate_template = 'cruds/pagination/enumeration.html'
    paginate_position = 'Both'

The paginate_position options are Bottom, Both, Up

oscarmlage commented 7 years ago

Thanks again @luisza for the excellent work!