Update plugin.py
Updating plugin.py to check for the existence of the extras key in the data_dict.
This commit is contained in:
parent
d3cf5e58d1
commit
e3492b57e7
|
@ -97,7 +97,7 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm):
|
||||||
.filter(HarvestObject.current==True) \
|
.filter(HarvestObject.current==True) \
|
||||||
.first()
|
.first()
|
||||||
|
|
||||||
if context.get('for_edit'):
|
if context.get('for_edit') and 'extras' in data_dict:
|
||||||
# If we are editing the dataset, check if the harvest extras
|
# If we are editing the dataset, check if the harvest extras
|
||||||
# are there, and if so, remove them. This can happen eg when
|
# are there, and if so, remove them. This can happen eg when
|
||||||
# doing resource_update, which calls package_show
|
# doing resource_update, which calls package_show
|
||||||
|
|
Loading…
Reference in New Issue