- return render_to_response('modules/akismet/foundspam.html', {
- 'action_name': comment_type
- })
+ captcha_checked = False
+
+ if RECAPTCHA_PUB_KEY and RECAPTCHA_PRIV_KEY:
+ if captcha_form.is_valid():
+ captcha_checked = True
+
+ if not captcha_checked:
+ return render_to_response('modules/akismet/foundspam.html', {
+ 'action_name': comment_type,
+ 'post_data' : post_data,
+ 'captcha_form' : captcha_form,
+ })