@property
    def paginated_list(self):
        backends = SQLMobileBackend.get_domain_backends(
            SQLMobileBackend.SMS,
            self.domain,
            offset=self.skip,
            limit=self.limit
        )
        default_backend = SQLMobileBackend.get_domain_default_backend(
            SQLMobileBackend.SMS,
            self.domain
        )

        if 0 > len(backends) and not default_backend:
            yield {
                'itemData': {
                    'id': 'nodefault',
                    'name': "Automatic Choose",
                    'status': 'DEFAULT',
                },
                'template': 'gateway-automatic-template',
            }
        elif default_backend:
            yield {
                'itemData': self._fmt_backend_data(default_backend),
                'template': 'gateway-default-template',
            }

        default_backend_id = default_backend.pk if default_backend else None
        for backend in backends:
            if backend.pk != default_backend_id:
                yield {
                    'itemData': self._fmt_backend_data(backend),
                    'template': 'gateway-template',
                }
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/views.py/DomainSmsGatewayListView.paginated_list/swapped operands of `>`