From 0fb6a394915591ac828c364bffe40e01419e4c5e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Mar 2025 19:40:24 +0100 Subject: ✨ administrative act: intented to is now many (refs #6210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 76e258994..171b60513 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -2820,7 +2820,18 @@ class ActType(GeneralType): ("T", _("Treatment")), ) SERIALIZATION_EXCLUDE = ["associated_template"] - intented_to = models.CharField(_("Intended to"), max_length=2, choices=TYPE) + intented_to = models.CharField( + _("Intended to"), max_length=2, choices=TYPE, + help_text=_("Deprecated: do not use") + ) + intented_to_file = models.BooleanField( + _("Intented to archaeological file"), default=False) + intented_to_operation = models.BooleanField( + _("Intented to operation"), default=False) + intented_to_treatment = models.BooleanField( + _("Intented to treatment"), default=False) + intented_to_treatment_request = models.BooleanField( + _("Intented to treatment request"), default=False) code = models.CharField(_("Code"), max_length=10, blank=True, null=True) associated_template = models.ManyToManyField( DocumentTemplate, @@ -2886,7 +2897,6 @@ class AdministrativeAct(DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, ] EXTRA_REQUEST_KEYS = { "act_object": "act_object__icontains", - "act_type__intented_to": "act_type__intented_to", "associated_file__general_contractor__attached_to": "associated_file__general_contractor__attached_to__pk", "associated_file__name": "associated_file__name__icontains", "associated_file__operations__code_patriarche": "associated_file__operations__code_patriarche", -- cgit v1.2.3