def post(self, request, *args, **kwargs):
        if self.backend_form.is_valid():
            self.backend.name = self.backend_form.cleaned_data.get('name')
            self.backend.description = self.backend_form.cleaned_data.get('description')
            self.backend.reply_to_phone_number = self.backend_form.cleaned_data.get('reply_to_phone_number')

            extra_fields = {}
            for key, value in self.backend_form.cleaned_data.items():
                if self.backend.get_available_extra_fields() in key:
                    extra_fields[key] = value
            self.backend.set_extra_fields(**extra_fields)

            if self.use_load_balancing:
                self.backend.load_balancing_numbers = self.backend_form.cleaned_data['phone_numbers']

            self.backend.save()
            if not self.backend.is_global:
                self.backend.set_shared_domains(self.backend_form.cleaned_data.get('authorized_domains'))
            return self.redirect_to_gateway_list()
        return self.get(request, *args, **kwargs)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/views.py/AddGatewayViewMixin.post/swapped operands of `in`