Missing checkboxes in 'Notifications and subscriptions settings'. #517

Open
carlospzlz opened this Issue Dec 15, 2016 · 2 comments

Projects

None yet

2 participants

@carlospzlz

Shouldn't we need to add the BooleanField fields present in the model here:
https://github.com/dzone/osqa/blob/master/forum/models/user.py#L548

in the qanda.py form too?
https://github.com/dzone/osqa/blob/master/forum/forms/qanda.py#L354

Thanks,
Carlos

@aido123
aido123 commented Jan 12, 2017

The BooleanField in the model (users.py) will automatically convert to a CheckBoxInput. You just need to add each of these to the to the fields array at https://github.com/dzone/osqa/blob/master/forum/forms/qanda.py#L357

e.g.

fields = ['enable_notifications', 'member_joins', 'new_question', 'new_question_watched_tags', 'subscribed_questions', 'notify_answers' , 'notify_reply_to_comments' , 'notify_comments_own_post' , 'notify_comments' , 'notify_accepted']

@carlospzlz

Oh, I see. Thanks a lot for your reply, @aido123!

Carlos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment