stages/identification: fix label for inputs

This commit is contained in:
Jens Langhammer 2020-05-10 15:29:27 +02:00
parent 358922b09b
commit 9def45c8d7
1 changed files with 1 additions and 1 deletions

View File

@ -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):