Skip to content

Commit c2f86a5

Browse files
committed
Add explanatory comment to load_metadata_for_model - see HEA-898
1 parent d5314b3 commit c2f86a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pipelines/jobs/metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def load_metadata_for_model(context: OpExecutionContext, sheet_name: str, model:
8585
current = getattr(instance, k)
8686
if isinstance(current, list):
8787
current = sorted(current)
88+
# Note that we only allow changes to the fields. If a field is blank in the worksheet,
89+
# we leave any value that may have been set manually in the database.
8890
if v and v != current:
8991
if cpc[-2] != "H" and k not in [
9092
"aliases",

0 commit comments

Comments
 (0)