diff options
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r-- | archaeological_files/forms.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 6b150a9d5..a61b500df 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -1117,10 +1117,10 @@ class AdministrativeActFileModifySelect(TableSelect): super(AdministrativeActFileModifySelect, self).__init__(*args, **kwargs) if "act_type" in self.fields: self.fields["act_type"].choices = ActType.get_types( - dct={"intented_to": "F"} + dct={"intented_to_file": True} ) self.fields["act_type"].help_text = ActType.get_help( - dct={"intented_to": "F"} + dct={"intented_to_file": True} ) k = "operation__towns__numero_insee__startswith" if settings.ISHTAR_DPTS and k in self.fields: @@ -1215,10 +1215,10 @@ class AdministrativeActFileSelect(TableSelect): super(AdministrativeActFileSelect, self).__init__(*args, **kwargs) if "act_type" in self.fields: self.fields["act_type"].choices = ActType.get_types( - dct={"intented_to": "F"} + dct={"intented_to_file": True} ) self.fields["act_type"].help_text = ActType.get_help( - dct={"intented_to": "F"} + dct={"intented_to_file": True} ) k = "associated_file__towns__numero_insee__startswith" if k in self.fields and settings.ISHTAR_DPTS: @@ -1261,7 +1261,7 @@ class AdministrativeActFileForm(AdministrativeActForm): act_type = forms.ChoiceField(label=_("Act type"), choices=[]) TYPES = [ - FieldType("act_type", ActType, extra_args={"dct": {"intented_to": "F"}}), + FieldType("act_type", ActType, extra_args={"dct": {"intented_to_file": True}}), ] |