admin: fix provider list not having pagination

This commit is contained in:
Jens Langhammer 2020-02-23 14:28:02 +01:00
parent 1e7d912144
commit 0f46207ea4
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class ProviderListView(LoginRequiredMixin, PermissionListMixin, ListView):
model = Provider
permission_required = "passbook_core.add_provider"
template_name = "administration/provider/list.html"
paginate_by = 10
ordering = "id"
def get_context_data(self, **kwargs):
kwargs["types"] = {