fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Language menu move.
[wolnelektury.git]
/
src
/
newsletter
/
forms.py
diff --git
a/src/newsletter/forms.py
b/src/newsletter/forms.py
index
1091ed8
..
b75b7c6
100644
(file)
--- a/
src/newsletter/forms.py
+++ b/
src/newsletter/forms.py
@@
-21,6
+21,7
@@
class NewsletterForm(Form):
required=False, initial=False, label=_('I want to receive Wolne Lektury\'s newsletter.'))
mailing = False
mailing_field = 'agree_newsletter'
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).
data_processing_part1 = '''\
Administratorem danych osobowych jest Fundacja Nowoczesna Polska (ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa).
@@
-52,7
+53,7
@@
Więcej informacji w <a href="">polityce prywatności.</a>'''
# send_noreply_mail(
# ugettext('Confirm your subscription to Wolne Lektury newsletter'),
# render_to_string('newsletter/subscribe_email.html', {'subscription': subscription}), [email])
# 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):
class SubscribeForm(NewsletterForm):
@@
-60,12
+61,9
@@
class SubscribeForm(NewsletterForm):
agree_newsletter = None
email = EmailField(label=_('email address'))
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)
super(SubscribeForm, self).__init__(*args, **kwargs)