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/policies/dummy/forms.py

21 lines
513 B
Python

"""passbook Policy forms"""
from django import forms
from django.utils.translation import gettext as _
from passbook.policies.dummy.models import DummyPolicy
from passbook.policies.forms import GENERAL_FIELDS
class DummyPolicyForm(forms.ModelForm):
"""DummyPolicyForm Form"""
class Meta:
model = DummyPolicy
fields = GENERAL_FIELDS + ["result", "wait_min", "wait_max"]
widgets = {
"name": forms.TextInput(),
}
labels = {"result": _("Allow user")}