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

23 lines
525 B
Python
Raw Normal View History

2019-02-16 09:24:31 +00:00
"""passbook Policy forms"""
2018-11-26 21:08:48 +00:00
from django import forms
from django.utils.translation import gettext as _
2018-11-26 21:08:48 +00:00
2019-10-07 14:33:48 +00:00
from passbook.core.models import DebugPolicy
from passbook.policies.forms import GENERAL_FIELDS
2019-02-16 09:24:31 +00:00
class DebugPolicyForm(forms.ModelForm):
"""DebugPolicyForm Form"""
class Meta:
2019-02-16 09:24:31 +00:00
model = DebugPolicy
fields = GENERAL_FIELDS + ['result', 'wait_min', 'wait_max']
widgets = {
'name': forms.TextInput(),
}
labels = {
'result': _('Allow user')
}