From 1b3edfbb3f77eb7950b699af6cd7ec9c74c5e1bf Mon Sep 17 00:00:00 2001 From: Longze Chen Date: Mon, 5 Feb 2024 13:56:31 -0500 Subject: [PATCH] New templates should be added as inactive --- osf/management/commands/fetch_cedar_metadata_templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osf/management/commands/fetch_cedar_metadata_templates.py b/osf/management/commands/fetch_cedar_metadata_templates.py index 6663fe67072..688c2498da6 100644 --- a/osf/management/commands/fetch_cedar_metadata_templates.py +++ b/osf/management/commands/fetch_cedar_metadata_templates.py @@ -55,11 +55,12 @@ def ingest_cedar_metadata_templates(): ) updated.add(cedar_id) else: - # Initial version should be active + # Initial version should also be inactive CedarMetadataTemplate.objects.create( schema_name=schema_name, template=template, cedar_id=cedar_id, + active=False, template_version=1 ) newly_added.add(cedar_id)