staff add/edit participant: add biogragry field

This commit is contained in:
Élie Bouttier 2017-11-10 15:40:50 +01:00
parent 75d75135ab
commit 9d549ffce1
1 changed files with 2 additions and 2 deletions

View File

@ -766,7 +766,7 @@ class ParticipantCreate(StaffRequiredMixin, OnSiteFormMixin, CreateView):
return modelform_factory(
self.model,
form=ParticipantForm,
fields=['name', 'vip', 'email', 'phone_number', 'notes'] + ParticipantForm.SOCIAL_FIELDS,
fields=['name', 'vip', 'email', 'phone_number', 'biography', 'notes'] + ParticipantForm.SOCIAL_FIELDS,
)
@ -781,7 +781,7 @@ class ParticipantUpdate(StaffRequiredMixin, OnSiteFormMixin, UpdateView):
return modelform_factory(
self.model,
form=ParticipantForm,
fields=['name', 'vip', 'email', 'phone_number', 'notes'] + ParticipantForm.SOCIAL_FIELDS,
fields=['name', 'vip', 'email', 'phone_number', 'biography', 'notes'] + ParticipantForm.SOCIAL_FIELDS,
)