Commits

Anonymous committed 0671267

show subscribe button only when watchlist is enabled

Comments (0)

Files changed (1)

apps/discussion/forms.py

 
 class CommentForm(forms.Form):
     body = CommentNode._meta.get_field('body').formfield()
-    subscribe = forms.BooleanField(required=False, initial=True, label=_(u'Subscribe to comments'))
+    if appcheck.watchlist:
+        subscribe = forms.BooleanField(required=False, initial=True, label=_(u'Subscribe to comments'))
     reply_to = forms.IntegerField(required=False, widget=forms.HiddenInput)
 
     def __init__(self, *args, **kwargs):