From 9def45c8d71dad67545149d6126aef752cac0ac0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 10 May 2020 15:29:27 +0200 Subject: [PATCH] stages/identification: fix label for inputs --- passbook/stages/identification/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/stages/identification/forms.py b/passbook/stages/identification/forms.py index cd03e46d4..04217f7f8 100644 --- a/passbook/stages/identification/forms.py +++ b/passbook/stages/identification/forms.py @@ -36,7 +36,7 @@ class IdentificationForm(forms.Form): if self.stage.user_fields == [UserFields.E_MAIL]: self.fields["uid_field"] = forms.EmailField() self.fields["uid_field"].label = human_list( - [y.title() for x, y in UserFields.choices] + [x.title() for x in self.stage.user_fields] ) def clean_uid_field(self):