Пример #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,
     )
Пример #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))
Пример #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,
     )
Пример #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,
     )
Пример #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,
     )
Пример #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,
     )