From 7f394b7e9c324d2e6c0dcae6a6bc25b4f21af6cb Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sat, 20 Oct 2018 02:07:46 +0200 Subject: [PATCH] [Printer] Forgot a PrintAs field (see previous commit message) --- printer/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/printer/forms.py b/printer/forms.py index 1e7d1cee..2c89b6f0 100644 --- a/printer/forms.py +++ b/printer/forms.py @@ -51,6 +51,7 @@ class PrintForm(FormRevMixin, ModelForm): self.user = kwargs.pop('user') super(PrintForm, self).__init__(*args, prefix=prefix, **kwargs) self.fields['printAs'].label = 'Print As' + self.fields['printAs'].empty_label = self.user.pseudo self.fields['printAs'].queryset = self.user.adherent.club_members.all() self.fields['disposition'].label = 'disposition' self.fields['color'].label = 'color'