fix: Custom dataset fields won't be saved

This commit is contained in:
Maicol Battistini 2024-08-20 17:20:31 +02:00
parent ff5b210cd4
commit 092c68714b
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ def remove_check_replicated_custom_key(schema):
return schema
#CREATED BY FRANCESCO MANGIACRAPA FOR OVERRIDING THE package_extras_save FROM dictization.model_save.py
# Is this needed?
def _package_extras_save(extra_dicts, obj, context):
''' It can save repeated extras as key-value '''
allow_partial_update = context.get("allow_partial_update", False)
@ -321,7 +322,8 @@ class D4Science_ThemePlugin(plugins.SingletonPlugin, toolkit.DefaultDatasetForm)
}
#Overriding package_extras_save method
model_save.package_extras_save = _package_extras_save
# Is this needed?
# model_save.package_extras_save = _package_extras_save
#Overriding index home controller - rimosso in ckan 2.10
#d4sHC = d4SHomeController()