]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms/auth.py
Making the default email subscription option on the register page configurable from...
[osqa.git] / forum / forms / auth.py
index cb88ac252dbf2f3ede6f03ad559713f4a8d9405d..c1a7c0914f6d5d05372f079247222d43ade4feaa 100644 (file)
@@ -1,5 +1,6 @@
 from general import NextUrlField,  UserNameField,  UserEmailField, SetPasswordForm
 from forum.models import Question, User
+from forum.settings import INITIAL_EMAIL_SUBSCRIBE_OPTION
 from django.contrib.contenttypes.models import ContentType
 from django.utils.translation import ugettext as _
 from django.utils.safestring import mark_safe
@@ -42,7 +43,7 @@ class SimpleEmailSubscribeForm(forms.Form):
     )
     subscribe = forms.ChoiceField(widget=forms.widgets.RadioSelect(), \
                                 error_messages={'required':_('please choose one of the options above')},
-                                choices=SIMPLE_SUBSCRIBE_CHOICES)
+                                choices=SIMPLE_SUBSCRIBE_CHOICES, initial=INITIAL_EMAIL_SUBSCRIBE_OPTION)
 
 
 class ChangePasswordForm(SetPasswordForm):