

def get_results(self, request):
    paginator = self.model_admin.get_paginator(request, self.query_set, self.list_per_page)
    result_count = paginator.count
    if (len(self.query_set._query) == 1):
        full_result_count = result_count
    else:
        full_result_count = self.root_query_set.count()
    can_show_all = (result_count <= self.list_max_show_all)
    multi_page = (result_count > self.list_per_page)
    if ((self.show_all and can_show_all) or (not multi_page)):
        result_list = self.query_set.clone()
    else:
        try:
            result_list = paginator.page((self.page_num + 1)).object_list
        except InvalidPage:
            raise IncorrectLookupParameters
    self.result_count = result_count
    self.full_result_count = full_result_count
    self.result_list = result_list
    self.can_show_all = can_show_all
    self.multi_page = multi_page
    self.paginator = paginator

dataset/ETHPy150Open MongoEngine/django-mongoengine/django_mongoengine/mongo_admin/views.py DocumentChangeList.get_results/original