Skip to content

Commit 4985e1b

Browse files
author
HenryVisuri
committed
Temporarily disable check_visibility in get_attribute_data_filtered
1 parent c187050 commit 4985e1b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

projects/helpers.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,9 @@ def get_attribute_data_filtered_response(attributes, generated_attributes, ignor
822822
response[identifier] = ""
823823
continue
824824

825-
if not check_visibility(project, attribute):
826-
continue
825+
# Temporarily disabled 04.03.2026 due to not all necessary fields showing
826+
#if not check_visibility(project, attribute):
827+
# continue
827828

828829
if attribute.value_type == "fieldset":
829830
fieldset = []
@@ -864,8 +865,8 @@ def get_attribute_data_filtered_response(attributes, generated_attributes, ignor
864865

865866
# TODO: Rename DOCUMENT_EDIT_URL_FORMAT to be generic url base
866867
url = settings.DOCUMENT_EDIT_URL_FORMAT.replace("<pk>", str(project.pk)).removesuffix("/edit")
867-
response["projektin_nimi"] = project.name
868-
response["pinonumero"] = project.pino_number
868+
#response["projektin_nimi"] = project.name
869+
#response["pinonumero"] = project.pino_number
869870
response["projektin_osoite"] = url
870871
response["onhold"] = project.onhold
871872
response["onhold_at"] = project.onhold_at.strftime("%d.%m.%Y %H:%M:%S") if project.onhold_at else ""

0 commit comments

Comments
 (0)