Commits

Nathaniel Tucker committed 64aeed3

Fix remote_ip parameter bug

  • Participants
  • Parent commits 138626e

Comments (0)

Files changed (1)

File recaptcha_form/forms.py

 
 
 class RecaptchaBaseForm(forms.BaseForm):
-    def __init__(self, remote_ip, *args, **kwargs):
+    def __init__(self, *args, **kwargs):
+        remote_ip = kwargs.pop('remote_ip', None)
         for key, field in self.base_fields.items():
             if isinstance(field, RecaptchaFieldPlaceholder):
                 self.base_fields[key] = RecaptchaField(remote_ip, *field.args, **field.kwargs)