def __init__(self, *args, **kwargs):
        if kwargs not in 'domain':
            raise Exception('Expected kwargs: domain')
        self.domain = kwargs.pop('domain')

        super(SendRegistrationInviationsForm, self).__init__(*args, **kwargs)
        self.set_app_id_choices()

        self.helper = FormHelper()
        self.helper.form_class = "form form-horizontal"
        self.helper.layout = crispy.Layout(
            FieldsetAccordionGroup(
                _("Send Registration Invitation"),
                crispy.Field('app_id'),
                crispy.Field(
                    'phone_numbers',
                    placeholder=_("Enter phone number(s) in international "
                        "format. Example: +27..., +91...,"),
                ),
                InlineField('action'),
                FormActions(
                    StrictButton(
                        _("Send Invitation"),
                        type="submit",
                        css_class="btn-primary",
                    ),
                ),
                active=len(args) > 0,
            )
        )
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/forms.py/SendRegistrationInviationsForm.__init__/swapped operands of `not in`