def profile_form(self): if self.request.method == 'POST' and self.request.POST.get('form') == 'profile': return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, data=self.request.POST, files=self.request.FILES, ) return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, data=None, )
def profile_form(self): return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, data=(self.request.POST if self.request.method == 'POST' and self.request.POST.get('form') == 'profile' else None))
def profile_form(self): bind = is_form_bound(self.request, 'profile') return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def profile_form(self): bind = self.request.method == 'POST' and self.request.POST.get('form') == 'profile' return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def profile_form(self): bind = is_form_bound(self.request, 'profile') return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, field_configuration=self.request.event.cfp_workflow.steps_dict.get('profile', {}).get('fields'), data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def profile_form(self): bind = is_form_bound(self.request, "profile") return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, field_configuration=self.request.event.cfp_flow.config.get( "profile", {}).get("fields"), data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )