Пример #1
0
    def schedule_form(self):
        if self.request.method == 'POST':
            return ConditionalAlertScheduleForm(self.domain, self.schedule,
                                                self.rule, self.criteria_form,
                                                self.request.POST)

        return ConditionalAlertScheduleForm(self.domain, self.schedule,
                                            self.rule, self.criteria_form)
Пример #2
0
    def schedule_form(self):
        args = [
            self.domain,
            self.schedule,
            self.can_use_inbound_sms,
            self.rule,
            self.criteria_form,
        ]

        if self.request.method == 'POST':
            args.append(self.request.POST)

        return ConditionalAlertScheduleForm(*args)
Пример #3
0
    def schedule_form(self):
        args = [
            self.domain,
            self.schedule,
            self.can_use_inbound_sms,
            self.rule,
            self.criteria_form,
        ]

        if self.request.method == 'POST':
            args.append(self.request.POST)

        return ConditionalAlertScheduleForm(
            *args,
            new_reminders_migrator=self.new_reminders_migrator,
            is_system_admin=self.is_system_admin)