8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 16:33:12 +00:00

[Printer] Forgot a PrintAs field (see previous commit message)

This commit is contained in:
Maxime Bombar 2018-10-20 02:07:46 +02:00 committed by root
parent d554cff4ef
commit 7f394b7e9c

View file

@ -51,6 +51,7 @@ class PrintForm(FormRevMixin, ModelForm):
self.user = kwargs.pop('user') self.user = kwargs.pop('user')
super(PrintForm, self).__init__(*args, prefix=prefix, **kwargs) super(PrintForm, self).__init__(*args, prefix=prefix, **kwargs)
self.fields['printAs'].label = 'Print As' 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['printAs'].queryset = self.user.adherent.club_members.all()
self.fields['disposition'].label = 'disposition' self.fields['disposition'].label = 'disposition'
self.fields['color'].label = 'color' self.fields['color'].label = 'color'