[#16] Add organization to source dict
This commit is contained in:
parent
7257258ca4
commit
949bb6fe6a
|
@ -33,6 +33,7 @@ def harvest_source_schema():
|
|||
'title': [if_empty_same_as("name"), unicode],
|
||||
'notes': [ignore_missing, unicode],
|
||||
'owner_org': [owner_org_validator, unicode],
|
||||
'organization': [ignore_missing],
|
||||
'frequency': [ignore_missing, unicode, harvest_source_frequency_exists, convert_to_extras],
|
||||
'state': [ignore_missing],
|
||||
'config': [ignore_missing, harvest_source_config_validator, convert_to_extras],
|
||||
|
|
|
@ -155,7 +155,8 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm):
|
|||
|
||||
surplus_keys_schema = ['__extras', '__junk', 'extras', 'notes',
|
||||
'extras_validation', 'save', 'return_to', 'type',
|
||||
'state', 'owner_org', 'frequency', 'config']
|
||||
'state', 'owner_org', 'frequency', 'config',
|
||||
'organization']
|
||||
|
||||
#TODO: state and delete
|
||||
if not schema:
|
||||
|
|
Loading…
Reference in New Issue