Self hosted FLOSS fitness/workout, nutrition and weight tracker
attrs not supported by ReCaptchaField
Scott Peshakfd7875a895aa
diff --git a/wger/core/forms.py b/wger/core/forms.pyindex a8c5e646c..7ac69084b 100644--- a/wger/core/forms.py+++ b/wger/core/forms.py@@ -140,8 +140,7 @@ class RegistrationForm(UserCreationForm, UserEmailForm):# randomly one of the application languages. This also appears to happen# only on wger.de, perhaps because there the application is behind a reverse# proxy. See #281.- captcha = ReCaptchaField(#attrs={'theme': 'clean', 'lang': 'en'},- label=_('Confirmation text'),+ captcha = ReCaptchaField(label=_('Confirmation text'),help_text=_('As a security measure, please enter the previous words'))@@ -178,6 +177,5 @@ class FeedbackAnonymousForm(FeedbackRegisteredForm):'''Feedback form used for anonymous users (has additionally a reCaptcha field)'''- captcha = ReCaptchaField(#attrs={'theme': 'clean'},- label=_('Confirmation text'),+ captcha = ReCaptchaField(label=_('Confirmation text'),help_text=_('As a security measure, please enter the previous words'),)diff --git a/wger/manager/forms.py b/wger/manager/forms.pyindex 89b095e4d..0bf01309f 100644--- a/wger/manager/forms.py+++ b/wger/manager/forms.py@@ -60,8 +60,7 @@ from wger.utils.widgets import (class DemoUserForm(Form):- captcha = ReCaptchaField(#attrs={'theme': 'clean'},- label=_('Confirmation text'),+ captcha = ReCaptchaField(label=_('Confirmation text'),help_text=_('As a security measure, please enter the previous words'),)