Source code for scipost.mixins
__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from .paginator import SciPostPaginator
[docs]class PaginationMixin:
"""
Mixin for generic class-based views (e.g. django.views.generic.ListView)
"""
paginator_class = SciPostPaginator