diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 14 |
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", |