From 2e167117e877eb2ffbdbc96f1792a692c1d76f00 Mon Sep 17 00:00:00 2001 From: Cecilie Seim <68303562+tilen1976@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:58:18 +0200 Subject: [PATCH] add non-editable section --- src/datadoc/frontend/callbacks/variables.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/datadoc/frontend/callbacks/variables.py b/src/datadoc/frontend/callbacks/variables.py index 9afab330..23638fc4 100644 --- a/src/datadoc/frontend/callbacks/variables.py +++ b/src/datadoc/frontend/callbacks/variables.py @@ -22,6 +22,7 @@ from datadoc.frontend.fields.display_variables import ( MULTIPLE_LANGUAGE_VARIABLES_METADATA, ) +from datadoc.frontend.fields.display_variables import NON_EDITABLE_VARIABLES_METADATA from datadoc.frontend.fields.display_variables import OBLIGATORY_VARIABLES_METADATA from datadoc.frontend.fields.display_variables import ( OBLIGATORY_VARIABLES_METADATA_IDENTIFIERS_AND_DISPLAY_NAME, @@ -68,6 +69,11 @@ def populate_variables_workspace( "Anbefalt", variable, ), + build_edit_section( + NON_EDITABLE_VARIABLES_METADATA, + "Maskingenerert", + variable, + ), ], ) for variable in variables