Exemplo n.º 1
0
 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,
     )
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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,
     )
Exemplo n.º 4
0
 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,
     )
Exemplo n.º 5
0
 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,
     )
Exemplo n.º 6
0
 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,
     )