Skip to content

Commit

Permalink
Rename custom recaptcha field
Browse files Browse the repository at this point in the history
  • Loading branch information
turicas committed May 10, 2024
1 parent a43ca52 commit 91f128e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion brasilio_auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.utils.translation import gettext_lazy as _
from django_registration.forms import RegistrationFormUniqueEmail

from utils.forms import FlagedReCaptchaField as ReCaptchaField
from utils.forms import FlaggedReCaptchaField as ReCaptchaField

USERNAME_REGEXP = re.compile(r"[^A-Za-z0-9_]")
PUNCT_REGEXP = re.compile("[-/ .]")
Expand Down
2 changes: 1 addition & 1 deletion core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from core.data_models import EmpresaTableConfig
from core.models import get_table_model
from utils.forms import FlagedReCaptchaField as ReCaptchaField
from utils.forms import FlaggedReCaptchaField as ReCaptchaField


def numbers_only(value):
Expand Down
2 changes: 1 addition & 1 deletion utils/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django_recaptcha.fields import ReCaptchaField


class FlagedReCaptchaField(ReCaptchaField):
class FlaggedReCaptchaField(ReCaptchaField):
def validate(self, *args, **kwargs):
if settings.DISABLE_RECAPTCHA:
self.validators = []
Expand Down

0 comments on commit 91f128e

Please sign in to comment.