Skip to content

Commit 8e68b92

Browse files
committed
add promotion on workflow status change to
1 parent aa59602 commit 8e68b92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sde_collections/models/collection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ def create_configs_on_status_change(sender, instance, created, **kwargs):
683683
if "workflow_status" in instance.tracker.changed():
684684
if instance.workflow_status == WorkflowStatusChoices.READY_FOR_CURATION:
685685
instance.create_plugin_config(overwrite=True)
686+
elif instance.workflow_status == WorkflowStatusChoices.CURATED:
687+
instance.promote_to_curated()
686688
elif instance.workflow_status == WorkflowStatusChoices.READY_FOR_ENGINEERING:
687689
instance.create_scraper_config(overwrite=False)
688690
instance.create_indexer_config(overwrite=False)

0 commit comments

Comments
 (0)