summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-17 19:40:24 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-17 19:46:08 +0100
commit0fb6a394915591ac828c364bffe40e01419e4c5e (patch)
tree50be84a8e66f5c59fe6262b7626f70e39635e0df /archaeological_operations/models.py
parent24ce5d46977ed8b8b61acaf3cf3fbbf9e51c6fb0 (diff)
downloadIshtar-0fb6a394915591ac828c364bffe40e01419e4c5e.tar.bz2
Ishtar-0fb6a394915591ac828c364bffe40e01419e4c5e.zip
✨ administrative act: intented to is now many (refs #6210)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py14
1 files changed, 12 insertions, 2 deletions
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",