From 8c0edb9a85e947f0dac65c630ba1c2fa185e880a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 23 May 2019 17:15:05 +0200 Subject: Treatment file forms: fix bad configuration on index --- archaeological_finds/forms_treatments.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index 203eb0209..ccde70cb4 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -301,8 +301,8 @@ class OneNTreatmentForm(BaseTreatmentForm): class TreatmentModifyForm(BaseTreatmentForm): - index = forms.IntegerField(_(u"Index")) - id = forms.IntegerField(' ', widget=forms.HiddenInput, required=False) + index = forms.IntegerField(label=_(u"Index")) + id = forms.IntegerField(label=' ', widget=forms.HiddenInput, required=False) def __init__(self, *args, **kwargs): super(TreatmentModifyForm, self).__init__(*args, **kwargs) @@ -710,7 +710,7 @@ class TreatmentFileForm(ManageOldType): associated_model=Organization, new=True), validators=[valid_id(Organization)], required=False) associated_basket = forms.IntegerField( - _(u"Associated basket"), + label=_(u"Associated basket"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-findbasket'), associated_model=models.FindBasket), required=False) @@ -739,8 +739,8 @@ class TreatmentFileForm(ManageOldType): class TreatmentFileModifyForm(TreatmentFileForm): - index = forms.IntegerField(_(u"Index")) - id = forms.IntegerField(' ', widget=forms.HiddenInput, required=False) + index = forms.IntegerField(label=_(u"Index")) + id = forms.IntegerField(label=' ', widget=forms.HiddenInput, required=False) def __init__(self, *args, **kwargs): super(TreatmentFileModifyForm, self).__init__(*args, **kwargs) -- cgit v1.2.3