From 5daa8d5fe3be968c3c8f102cb1a69400a4a9e25a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 29 Apr 2019 23:16:04 +0200 Subject: [PATCH] fix missing/wrong widget inputs --- passbook/core/forms/factors.py | 3 ++- passbook/core/forms/policies.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/core/forms/factors.py b/passbook/core/forms/factors.py index 3a5b14b4d..b304eb966 100644 --- a/passbook/core/forms/factors.py +++ b/passbook/core/forms/factors.py @@ -27,7 +27,8 @@ class PasswordFactorForm(forms.ModelForm): 'order': forms.NumberInput(), 'policies': FilteredSelectMultiple(_('policies'), False), 'backends': FilteredSelectMultiple(_('backends'), False, - choices=get_authentication_backends()) + choices=get_authentication_backends()), + 'password_policies': FilteredSelectMultiple(_('password policies'), False), } class DummyFactorForm(forms.ModelForm): diff --git a/passbook/core/forms/policies.py b/passbook/core/forms/policies.py index 8fc1e5a38..1adf4b6cd 100644 --- a/passbook/core/forms/policies.py +++ b/passbook/core/forms/policies.py @@ -63,6 +63,7 @@ class GroupMembershipPolicyForm(forms.ModelForm): fields = GENERAL_FIELDS + ['group', ] widgets = { 'name': forms.TextInput(), + 'order': forms.NumberInput(), } class PasswordPolicyForm(forms.ModelForm):