mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 08:23:12 +00:00
[Printer] Forgot a PrintAs field (see previous commit message)
This commit is contained in:
parent
d554cff4ef
commit
7f394b7e9c
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue