)
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)
model = SubscriptionSettings
+