diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-23 17:15:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-23 17:15:05 +0200 |
commit | 880075af959c2989724599258036529c0627fb2f (patch) | |
tree | a0bc2e06029aebca77a3215e5f503ef0299ef471 /archaeological_finds/forms_treatments.py | |
parent | 465cd1aad9b091d18f4c9a208d0c091bf14f6dc0 (diff) | |
download | Ishtar-880075af959c2989724599258036529c0627fb2f.tar.bz2 Ishtar-880075af959c2989724599258036529c0627fb2f.zip |
Treatment file forms: fix bad configuration on index
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r-- | archaeological_finds/forms_treatments.py | 10 |
1 files 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) |