Mercurial > sat_legacy_website
diff sat_website/forms.py @ 74:651c4049f32b
rename "Newsletter" to "Mailing list" in the adhesion form
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 28 May 2015 01:46:45 +0200 |
parents | 64977f537e9b |
children | 13ebb548f234 |
line wrap: on
line diff
--- a/sat_website/forms.py Wed May 27 19:52:36 2015 +0200 +++ b/sat_website/forms.py Thu May 28 01:46:45 2015 +0200 @@ -105,7 +105,7 @@ section_6 = Section(label=_(u'Comment')) comment = CharField(required=False, label=_(u"Comment"), placeholder="", widget=forms.Textarea(attrs={'rows': 3})) - newsletter = BooleanField(required=False, label=_(u'I would like to receive the newsletter.')) + mailing = BooleanField(required=False, label=_(u"I would like to subscribe to the adherents' mailing list.")) def html_link(url, label): return string_concat('<a target="#" href="', url, '">', label, '</a>') @@ -168,7 +168,7 @@ value = re.sub(r"[\n\r]+", ", ", unicode(field.value())) if user_readable: if isinstance(field.field, BooleanField): - key = key.capitalize() # to get Newsletter instead of "Please add me..." + key = key.capitalize() # to get Mailing instead of "I would like..." else: key = field.label if isinstance(field.field, ChoiceField):