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-11 13:41:48 +01:00

17 lines
453 B
Python

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