From f3764eea1ac4a6cdb12095322a00fd93d377c2c5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 15 Nov 2024 11:51:49 +0100 Subject: ✨ adapt sheet to manage sheet filters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 9d0f8142b..84bd8ab2e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1555,6 +1555,7 @@ class Operation( "archaeological_sites", ] SERIALIZE_STRING = ["scientist", "in_charge", "cira_rapporteur"] + SHEET_EMPTY_KEYS = ["code_patriarche", "common_name", "short_label"] # fields definition uuid = models.UUIDField(default=uuid.uuid4) @@ -3085,6 +3086,7 @@ class AdministrativeAct(DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, (("archaeological_finds", "treatment"), "treatment_id"), ] + SHEET_EMPTY_KEYS = ["act_type", "full_ref"] # fields act_type = models.ForeignKey( -- cgit v1.2.3