diff --git a/ckanext/qa/plugin/__init__.py b/ckanext/qa/plugin/__init__.py index 625fe9ba..6d50a160 100644 --- a/ckanext/qa/plugin/__init__.py +++ b/ckanext/qa/plugin/__init__.py @@ -121,3 +121,10 @@ def after_dataset_show(self, context, pkg_dict): del qa_dict['package_id'] del qa_dict['resource_id'] res['qa'] = qa_dict + + def before_dataset_index(self, pkg_dict): + ''' + remove `qa` from index + ''' + pkg_dict.pop('qa', None) + return pkg_dict \ No newline at end of file