From e0f043c751fd59912ed36611adfcc7a7ce4ae15c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 23 Feb 2018 10:21:53 +0100 Subject: Site labels: fix translation of customization --- archaeological_context_records/forms.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'archaeological_context_records/forms.py') 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: -- cgit v1.2.3