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.
2018-11-30 14:50:27 +00:00
|
|
|
"""passbook administration forms"""
|
|
|
|
from django import forms
|
|
|
|
|
2020-05-28 19:45:54 +00:00
|
|
|
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())
|
2020-05-28 19:45:54 +00:00
|
|
|
context = YAMLField(widget=CodeMirrorWidget())
|