def trigger_form(self): if self.request.method == 'POST': return TriggerInvoiceForm( self.request.POST, show_testing_options=self.is_testing_enabled ) return TriggerInvoiceForm(show_testing_options=self.is_testing_enabled)
def trigger_form(self): if self.request.method == 'POST': return TriggerInvoiceForm(self.request.POST) return TriggerInvoiceForm()