diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-23 10:21:53 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-23 10:21:53 +0100 |
commit | e0f043c751fd59912ed36611adfcc7a7ce4ae15c (patch) | |
tree | 98f6fccc22dc283a84d0271a26546b03b3073d2b /archaeological_context_records/forms.py | |
parent | f5cd3193e7ab86a93f2e2159fb4719f17c983991 (diff) | |
download | Ishtar-e0f043c751fd59912ed36611adfcc7a7ce4ae15c.tar.bz2 Ishtar-e0f043c751fd59912ed36611adfcc7a7ce4ae15c.zip |
Site labels: fix translation of customization
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index de44998e6..e776f2ec7 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -150,7 +150,8 @@ class RecordFormGeneral(CustomForm, ManageOldType): parcel = forms.ChoiceField(label=_("Parcel"), choices=[]) archaeological_site = forms.ChoiceField( label=" ", choices=[], required=False, - help_text=_(u"Only the items associated to the operation can be selected.") + help_text=_(u"Only the items associated to the operation can be " + u"selected.") ) label = forms.CharField(label=_(u"ID"), validators=[validators.MaxLengthValidator(200)]) @@ -233,10 +234,6 @@ class RecordFormGeneral(CustomForm, ManageOldType): site_label = IshtarSiteProfile.get_default_site_label() self.fields['archaeological_site'].label = site_label - self.fields['archaeological_site'].help_text = \ - unicode(self.fields['archaeological_site'].help_text).format( - site_label - ) self.fields['archaeological_site'].choices = [('', '--')] if operation: |