summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms_treatments.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_finds/forms_treatments.py
parent24ce5d46977ed8b8b61acaf3cf3fbbf9e51c6fb0 (diff)
downloadIshtar-0fb6a394915591ac828c364bffe40e01419e4c5e.tar.bz2
Ishtar-0fb6a394915591ac828c364bffe40e01419e4c5e.zip
✨ administrative act: intented to is now many (refs #6210)
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r--archaeological_finds/forms_treatments.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py
index 2c10028d4..3131f4e1d 100644
--- a/archaeological_finds/forms_treatments.py
+++ b/archaeological_finds/forms_treatments.py
@@ -647,9 +647,9 @@ class AdministrativeActTreatmentSelect(TableSelect):
def __init__(self, *args, **kwargs):
super(AdministrativeActTreatmentSelect, self).__init__(*args, **kwargs)
self.fields['act_type'].choices = ActType.get_types(
- dct={'intented_to': 'T'})
+ dct={"intented_to_treatment": True})
self.fields['act_type'].help_text = ActType.get_help(
- dct={'intented_to': 'T'})
+ dct={"intented_to_treatment": True})
self.fields['treatment__treatment_types'].choices = \
models.TreatmentType.get_types()
self.fields['treatment__treatment_types'].help_text = \
@@ -673,7 +673,7 @@ class AdministrativeActTreatmentForm(AdministrativeActForm):
TYPES = [
FieldType('act_type', ActType,
- extra_args={"dct": {'intented_to': 'T'}}),
+ extra_args={"dct": {"intented_to_treatment": True}}),
]
@@ -909,9 +909,9 @@ class AdministrativeActTreatmentFileSelect(TableSelect):
super(AdministrativeActTreatmentFileSelect, self).__init__(*args,
**kwargs)
self.fields['act_type'].choices = ActType.get_types(
- dct={'intented_to': 'TF'})
+ dct={"intented_to_treatment_request": True})
self.fields['act_type'].help_text = ActType.get_help(
- dct={'intented_to': 'TF'})
+ dct={"intented_to_treatment_request": True})
self.fields['treatment_file__type'].choices = \
models.TreatmentFileType.get_types()
self.fields['treatment_file__type'].help_text = \
@@ -935,7 +935,7 @@ class AdministrativeActTreatmentFileForm(AdministrativeActForm):
TYPES = [
FieldType('act_type', ActType,
- extra_args={"dct": {'intented_to': 'TF'}}),
+ extra_args={"dct": {"intented_to_treatment_request": True}}),
]