This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/admin/views/applications.py
2018-11-16 09:10:35 +01:00

19 lines
559 B
Python

"""passbook application administration"""
from django.views.generic import CreateView, DeleteView, ListView, UpdateView
from passbook.admin.mixins import AdminRequiredMixin
from passbook.core.models import Application
class ApplicationListView(AdminRequiredMixin, ListView):
model = Application
template_name = 'administration/application/list.html'
class ApplicationCreateView(AdminRequiredMixin, CreateView):
model = Application
template_name = 'administration/application/create.html'
fields = ['name', 'launch_url', 'icon_url']