diff options
Diffstat (limited to 'archaeological_files/forms.py')
| -rw-r--r-- | archaeological_files/forms.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 82383a71d..587cb2237 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -98,6 +98,7 @@ class FileSelect(DocumentItemSelect):              label=_("Department"), choices=[]          )      name = forms.CharField(label=_("File name"), max_length=200) +    operation_name = forms.CharField(label=_("Operation name"), max_length=200)      file_type = forms.ChoiceField(label=_("File type"), choices=[])      end_date = forms.NullBooleanField(label=_("Is active?"))      development_type = forms.ChoiceField(label=_("Development type"), choices=[]) @@ -288,6 +289,8 @@ class FileFormPlanning(CustomForm, ManageOldType):      HEADERS = {}      HEADERS["town"] = FormHeader(_("Geographic localisation"))      name = forms.CharField(label=_("Planning name"), required=False, max_length=1000) +    operation_name = forms.CharField(label=_("Operation name"), required=False, max_length=1000, +                                     help_text=_("This name is used on creation for the associated operation"))      development_type = forms.ChoiceField(label=_("Development type"), choices=[], required=False)      town = widgets.Select2MultipleField( @@ -337,6 +340,8 @@ class FileFormResearchAddress(CustomForm, forms.Form):      base_models = ["town", "department"]      associated_models = {"town": Town, "department": Department}      name = forms.CharField(label=_("Project name"), required=False, max_length=100) +    operation_name = forms.CharField(label=_("Operation name"), required=False, max_length=1000, +                                     help_text=_("This name is used on creation for the associated operation"))      town = widgets.Select2MultipleField(          model=Town, label=_("Towns"), required=False, remote=True      ) | 
