code: def paginate_results(self, results, options):
          "Return a django.core.paginator.Page of results."
          limit = options.get('limit', settings.SELECTABLE_MAX_LIMIT)
          paginator = Paginator(results, limit)
          page = options.get('page', 1)
          try:
              results = paginator.page(page)
          except (EmptyPage, InvalidPage):
              results = paginator.page(paginator.num_pages)
          return resultf paginate_results(self, results, options):
          "Return a django.core.paginator.Page of results."
          limit = options.get('limit', settings.SELECTABLE_MAX_LIMIT)
          paginator = Paginator(results, limit)
          page = options.get('page', 1)
          try:
              results = paginator.page(page)
          except (EmptyPage, InvalidPage):
              results = paginator.page(paginator.num_pages)
          return results
docs: Return a django.core.paginator.Page of results.