diff --git a/ckan/lib/dictization/model_dictize.py b/ckan/lib/dictization/model_dictize.py index 74717a0bfd6..e171fee6f81 100644 --- a/ckan/lib/dictization/model_dictize.py +++ b/ckan/lib/dictization/model_dictize.py @@ -300,10 +300,6 @@ def package_dictize(pkg, context): result_dict['metadata_created'] = pkg.metadata_created.isoformat() \ if pkg.metadata_created else None - if context.get('for_view'): - for item in plugins.PluginImplementations( plugins.IPackageController): - result_dict = item.before_view(result_dict) - return result_dict def _get_members(context, group, member_type): diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 1d7dc58670e..54a308b8027 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -731,7 +731,8 @@ def package_show(context, data_dict): if not package_dict: package_dict = model_dictize.package_dictize(pkg, context) - elif context.get('for_view'): + + if context.get('for_view'): for item in plugins.PluginImplementations(plugins.IPackageController): package_dict = item.before_view(package_dict)