Exemplo n.º 1
0
 def questions_form(self):
     bind = is_form_bound(self.request, "questions")
     return QuestionsForm(
         data=self.request.POST if bind else None,
         files=self.request.FILES if bind else None,
         speaker=self.request.user,
         event=self.request.event,
         target="speaker",
     )
Exemplo n.º 2
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.º 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,
         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.º 4
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,
     )
Exemplo n.º 5
0
 def login_form(self):
     return LoginInfoForm(
         user=self.request.user,
         data=self.request.POST
         if is_form_bound(self.request, 'login') else None,
     )
Exemplo n.º 6
0
 def profile_form(self):
     return OrgaProfileForm(
         instance=self.request.user,
         data=self.request.POST if is_form_bound(self.request, 'profile') else None,
     )