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

13 lines
358 B
Python
Raw Normal View History

2018-11-30 14:50:27 +00:00
"""passbook administration forms"""
from django import forms
from passbook.admin.fields import CodeMirrorWidget, YAMLField
2018-11-30 14:50:27 +00:00
from passbook.core.models import User
2019-02-16 09:24:31 +00:00
class PolicyTestForm(forms.Form):
"""Form to test policies against user"""
2018-11-30 14:50:27 +00:00
user = forms.ModelChoiceField(queryset=User.objects.all())
context = YAMLField(widget=CodeMirrorWidget())