Skip to content

Commit

Permalink
Recaptcha library no longer accepts language and theme parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed May 31, 2011
1 parent a05e4f5 commit 7198073
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions recaptcha_form/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# Do you want to bypass reCAPTCHA validation while in DEBUG mode?
SKIP_IF_IN_DEBUG_MODE = False

RECAPTCHA_LANG = settings.LANGUAGE_CODE[:2]
RECAPTCHA_THEME = getattr(settings, 'RECAPTCHA_THEME', 'red')


### ERROR_CODES
ERROR_CODES = {
Expand All @@ -34,9 +31,7 @@ def __init__(self):
super(RecaptchaWidget, self).__init__()

def render(self, name, value, attrs=None):
html = captcha.displayhtml(settings.RECAPTCHA_PUB_KEY,
theme=RECAPTCHA_THEME,
lang=RECAPTCHA_LANG)
html = captcha.displayhtml(settings.RECAPTCHA_PUB_KEY)
return mark_safe(html)

def value_from_datadict(self, data, files, name):
Expand Down

0 comments on commit 7198073

Please sign in to comment.