From b1bc0922aaa939c5ed2d5c43eca571795991e765 Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Mon, 4 Sep 2023 16:09:31 +0530 Subject: [PATCH] fix registration crash (#298) --- utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/helpers.py b/utils/helpers.py index 65adbcc6..e5f90871 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -27,7 +27,7 @@ def get_client_ip(request): def validatecaptcha(recaptcha_response): - if not settings.get("GOOGLE_RECAPTCHA_SECRET_KEY", None): + if not getattr(settings, "GOOGLE_RECAPTCHA_SECRET_KEY", None): return True if not recaptcha_response: