]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms/qanda.py
Adds the user menu to the injectable places, makes several improvements in the user...
[osqa.git] / forum / forms / qanda.py
index d482d01e190750db27dcf833bf205d734b420cef..a98ef38ad6b5e54a24c79d1bb7f641cff28126ff 100644 (file)
@@ -276,7 +276,7 @@ NOTIFICATION_CHOICES = (
 )
 
 class SubscriptionSettingsForm(forms.ModelForm):
-    user = forms.IntegerField(widget=forms.HiddenInput)
+    enable_notifications = forms.BooleanField(widget=forms.HiddenInput, required=False)
     member_joins = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
     new_question = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
     new_question_watched_tags = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
@@ -286,3 +286,4 @@ class SubscriptionSettingsForm(forms.ModelForm):
         model = SubscriptionSettings
 
 
+