Skip to content

Commit

Permalink
To accept keyword args to the form init, we should not pull out remot…
Browse files Browse the repository at this point in the history
…e_ip parameter.
  • Loading branch information
ntucker committed Apr 21, 2012
1 parent 1d8a428 commit cbc1961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recaptcha_form/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class RecaptchaForm(RecaptchaBaseForm, forms.Form):
'''
Inheriting from this form gives you a reCAPTCHA field at the bottom.
'''
def __init__(self, remote_ip, *args, **kwargs):
def __init__(self, *args, **kwargs):
self.base_fields['captcha'] = RecaptchaFieldPlaceholder(
label=_('Are you human?') )
super(RecaptchaForm, self).__init__(remote_ip, *args, **kwargs)
super(RecaptchaForm, self).__init__(*args, **kwargs)

0 comments on commit cbc1961

Please sign in to comment.