required=False, initial=False, label=_('I want to receive Wolne Lektury\'s newsletter.'))
mailing = False
mailing_field = 'agree_newsletter'
+ mailing_list = 'general'
data_processing_part1 = '''\
Administratorem danych osobowych jest Fundacja Nowoczesna Polska (ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa).
# send_noreply_mail(
# ugettext('Confirm your subscription to Wolne Lektury newsletter'),
# render_to_string('newsletter/subscribe_email.html', {'subscription': subscription}), [email])
- mailing.subscribe(email, mailing_lists=self.cleaned_data.get('mailing_lists'))
+ mailing.subscribe(email, mailing_lists=[self.mailing_list])
class SubscribeForm(NewsletterForm):
agree_newsletter = None
email = EmailField(label=_('email address'))
- mailing_lists = MultipleChoiceField(
- widget=CheckboxSelectMultiple,
- choices=(('general', _('general newsletter')), ('contest', _('about the contest'))),
- label=_('mailing list'))
- def __init__(self, *args, **kwargs):
+ def __init__(self, mailing_list, *args, **kwargs):
+ self.mailing_list = mailing_list
super(SubscribeForm, self).__init__(*args, **kwargs)