refactor: break document-only stuff into the paperless app

The `SessionOrBasicAuthMixin` and `StandardPagination` classes were
living in the documents app and I needed them in the new `reminders`
app, so this commit breaks them out of `documents` and puts them in the
central `paperless` app instead.
This commit is contained in:
Daniel Quinn
2017-03-25 16:18:34 +00:00
parent e47c152b81
commit 426919fa9f
4 changed files with 56 additions and 57 deletions

7
src/paperless/views.py Normal file
View File

@@ -0,0 +1,7 @@
from rest_framework.pagination import PageNumberPagination
class StandardPagination(PageNumberPagination):
page_size = 25
page_size_query_param = "page-size"
max_page_size = 100000