all: implement black as code formatter
This commit is contained in:
@ -14,13 +14,11 @@ class PasswordExpiryPolicyForm(forms.ModelForm):
|
||||
class Meta:
|
||||
|
||||
model = PasswordExpiryPolicy
|
||||
fields = GENERAL_FIELDS + ['days', 'deny_only']
|
||||
fields = GENERAL_FIELDS + ["days", "deny_only"]
|
||||
widgets = {
|
||||
'name': forms.TextInput(),
|
||||
'order': forms.NumberInput(),
|
||||
'days': forms.NumberInput(),
|
||||
'policies': FilteredSelectMultiple(_('policies'), False)
|
||||
}
|
||||
labels = {
|
||||
'deny_only': _("Only fail the policy, don't set user's password.")
|
||||
"name": forms.TextInput(),
|
||||
"order": forms.NumberInput(),
|
||||
"days": forms.NumberInput(),
|
||||
"policies": FilteredSelectMultiple(_("policies"), False),
|
||||
}
|
||||
labels = {"deny_only": _("Only fail the policy, don't set user's password.")}
|
||||
|
Reference in New Issue
Block a user