Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace change in django_recaptcha library as of 4.0: captcha changed to django_recaptcha #50

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import absolute_import, unicode_literals

from captcha.fields import ReCaptchaField
from django_recaptcha.fields import ReCaptchaField
from django.test import TestCase

from home.models import TestCaptchaEmailFormField
Expand All @@ -26,7 +26,7 @@ def test_captcha_field_is_present(self):
self.assertIsInstance(
generated_fields[WagtailCaptchaFormBuilder.CAPTCHA_FIELD_NAME],
ReCaptchaField,
msg='Captcha field should be an instance of `captcha.fields.ReCaptchaField`.',
msg='Captcha field should be an instance of `django_recaptcha.fields.ReCaptchaField`.',
)

def test_user_defined_fields_are_present(self):
Expand Down
2 changes: 1 addition & 1 deletion wagtailcaptcha/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import absolute_import, unicode_literals

import wagtail
from captcha.fields import ReCaptchaField
from django_recaptcha.fields import ReCaptchaField

if wagtail.VERSION >= (2, 0):
from wagtail.contrib.forms.forms import FormBuilder
Expand Down