X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/869a46f8bd98f6f71a5cdd0b8c722b1686fe449c..f982c8513663a0f9927fb04ba650a5f63bb7f21f:/forum/forms/qanda.py diff --git a/forum/forms/qanda.py b/forum/forms/qanda.py index d482d01..a98ef38 100644 --- a/forum/forms/qanda.py +++ b/forum/forms/qanda.py @@ -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 +