def get_instances(self):
        '''
        Returns a set of native objects for a given state
        '''
        if 'page' in self.state:
            return self.state['page'].object_list
        if self.state.has_view_class('change_form'):
            return []
        return self.get_primary_query()
dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/resources/crud/resources.py/CRUDResource.get_instances/original