- return render_to_response('modules/akismet/foundspam.html', {
- 'action_name': comment_type
- })
-
+ captcha_checked = False
+ try:
+ if captcha_form.is_valid() and 'recaptcha' in captcha_form.fields.keys():
+ captcha_checked = True
+ except:
+ pass
+
+ if not captcha_checked:
+ return render_to_response('modules/akismet/foundspam.html', {
+ 'action_name': comment_type,
+ 'post_data' : post_data,
+ 'captcha_form' : captcha_form,
+ }, RequestContext(request))
+