From 7c8a1371ee2379de4919231dc12aa4df677c9123 Mon Sep 17 00:00:00 2001 From: Gil Forcada Date: Sun, 3 May 2015 08:56:58 +0200 Subject: [PATCH] 'X not in Y' --- plone/app/discussion/browser/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 3140b5e..1667184 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -150,7 +150,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): anonymous_comments = settings.anonymous_comments anon = portal_membership.isAnonymousUser() if captcha_enabled and anonymous_comments and anon: - if not 'captcha' in data: + if 'captcha' not in data: data['captcha'] = u"" captcha = CaptchaValidator(self.context, self.request,