diff --git a/bartenders/forms.py b/bartenders/forms.py index 389d863..9a38abe 100644 --- a/bartenders/forms.py +++ b/bartenders/forms.py @@ -1,7 +1,6 @@ from urllib.parse import urljoin from captcha.fields import ReCaptchaField -from captcha.widgets import ReCaptchaV2Invisible from django import forms from django.conf import settings from django.contrib.auth.models import User @@ -16,7 +15,7 @@ class BartenderApplicationForm(forms.ModelForm): - captcha = ReCaptchaField(widget=ReCaptchaV2Invisible) + captcha = ReCaptchaField() class Meta: model = BartenderApplication @@ -25,7 +24,7 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHAv2") + self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHA") self.fields["tshirt_size"].widget.attrs.update({"class": "form-control"}) for name in self.fields: self.fields[name].required = name != "info" diff --git a/udlejning/forms.py b/udlejning/forms.py index f806f1f..ea9136e 100644 --- a/udlejning/forms.py +++ b/udlejning/forms.py @@ -2,7 +2,6 @@ from bootstrap_datepicker_plus.widgets import DateTimePickerInput from captcha.fields import ReCaptchaField -from captcha.widgets import ReCaptchaV2Invisible from django import forms from django.conf import settings from django.urls import reverse @@ -15,7 +14,7 @@ class UdlejningApplicationForm(forms.ModelForm): - captcha = ReCaptchaField(widget=ReCaptchaV2Invisible) + captcha = ReCaptchaField() class Meta: model = UdlejningApplication @@ -28,7 +27,7 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHAv2") + self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHA") self.fields["paymentType"].widget.attrs.update({"class": "form-control"}) for name in self.fields: self.fields[name].required = name not in ["EANnumber", "comments"]