diff sat_website/views.py @ 57:bfa8009f0769

improve the subscription form
author souliane <souliane@mailoo.org>
date Thu, 14 May 2015 22:46:57 +0200
parents 01e9c646999f
children a14845624e01
line wrap: on
line diff
--- a/sat_website/views.py	Sun May 10 15:48:04 2015 +0200
+++ b/sat_website/views.py	Thu May 14 22:46:57 2015 +0200
@@ -96,7 +96,8 @@
                 category = 'thank_you'
         else:
             form = forms.RegistrationForm(initial={'subscription_amount': 10,
-                                                   'payment_method': 'transfer'})
+                                                   'payment_method': 'transfer',
+                                                   'newsletter': True})
         context['form'] = form
         context.update(utils.get_asso_urls())