diff options
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r-- | archaeological_finds/forms_treatments.py | 12 |
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}}), ] |