diff --git a/modules/ckanext-ytp-main/ckanext/ytp/dataset/plugin.py b/modules/ckanext-ytp-main/ckanext/ytp/dataset/plugin.py index 4690298d6e..082cd1f0ba 100644 --- a/modules/ckanext-ytp-main/ckanext/ytp/dataset/plugin.py +++ b/modules/ckanext-ytp-main/ckanext/ytp/dataset/plugin.py @@ -1,6 +1,6 @@ from ckan import plugins, model, logic from ckan.plugins import toolkit -from ckan.lib.navl.dictization_functions import Missing, StopOnError, missing +from ckan.lib.navl.dictization_functions import Missing, StopOnError, missing, flatten_dict, unflatten from ckan.lib import helpers from ckan.common import _, c, request @@ -546,9 +546,9 @@ def get_package_dict(self, context, data_dict): continue package_dict['content_type'] = value - flattened = dictization_functions.flatten_dict(package_dict) + flattened = flatten_dict(package_dict) convert_to_tags_string('content_type')(('content_type',), flattened, {}, context) - package_dict = dictization_functions.unflatten(flattened) + package_dict = unflatten(flattened) if extra['key'] == 'licence': value = json.loads(extra['value'])