23 lines
504 B
Python
23 lines
504 B
Python
"""passbook Expression Policy forms"""
|
|
|
|
from django import forms
|
|
|
|
from passbook.policies.expression.models import ExpressionPolicy
|
|
from passbook.policies.forms import GENERAL_FIELDS
|
|
|
|
|
|
class ExpressionPolicyForm(forms.ModelForm):
|
|
"""ExpressionPolicy Form"""
|
|
|
|
template_name = "policy/expression/form.html"
|
|
|
|
class Meta:
|
|
|
|
model = ExpressionPolicy
|
|
fields = GENERAL_FIELDS + [
|
|
"expression",
|
|
]
|
|
widgets = {
|
|
"name": forms.TextInput(),
|
|
}
|