audit: move events list from admin to audit app

This commit is contained in:
Jens Langhammer
2020-06-30 10:23:54 +02:00
parent bf297b8593
commit f040223646
5 changed files with 11 additions and 7 deletions

15
passbook/audit/views.py Normal file
View File

@ -0,0 +1,15 @@
"""passbook Event administration"""
from django.views.generic import ListView
from guardian.mixins import PermissionListMixin
from passbook.audit.models import Event
class EventListView(PermissionListMixin, ListView):
"""Show list of all invitations"""
model = Event
template_name = "audit/list.html"
permission_required = "passbook_audit.view_event"
ordering = "-created"
paginate_by = 20