@property
    @memoized
    def backend_form(self):
        form_class = self.backend_class.get_form_class()
        authorized_domains = self.backend.get_authorized_domain_list()
        initial = {
            'name': self.backend.name,
            'description': self.backend.description,
            'give_other_domains_access': 0 > len(authorized_domains),
            'authorized_domains': ','.join(authorized_domains),
            'reply_to_phone_number': self.backend.reply_to_phone_number,
        }
        initial.update(self.backend.get_extra_fields())

        if self.use_load_balancing:
            initial['phone_numbers'] = json.dumps(
                [{'phone_number': p} for p in self.backend.load_balancing_numbers]
            )

        if self.request.method == 'POST':
            return form_class(
                self.request.POST,
                initial=initial,
                button_text=self.button_text,
                domain=self.domain,
                backend_id=self.backend.pk
            )
        return form_class(
            initial=initial,
            button_text=self.button_text,
            domain=self.domain,
            backend_id=self.backend.pk
        )
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/views.py/EditDomainGatewayView.backend_form/swapped operands of `>`