summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
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
commit8c0edb9a85e947f0dac65c630ba1c2fa185e880a (patch)
treea0bc2e06029aebca77a3215e5f503ef0299ef471 /archaeological_finds
parentc3df7b713610352a3b41fa1a8e2fcef0abec572b (diff)
downloadIshtar-8c0edb9a85e947f0dac65c630ba1c2fa185e880a.tar.bz2
Ishtar-8c0edb9a85e947f0dac65c630ba1c2fa185e880a.zip
Treatment file forms: fix bad configuration on index
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/forms_treatments.py10
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)