From 103a4af9d48346239af786ff515a968ffb72dc6e Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 15 Oct 2021 23:18:03 +0200 Subject: [PATCH] fix signup with providers with extra args --- InvenTree/InvenTree/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index 279635756a..cd431a5f93 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -260,9 +260,9 @@ class RegistratonMixin: """ Mixin to check if registration should be enabled """ - def is_open_for_signup(self, request): + def is_open_for_signup(self, request, *args, **kwargs): if settings.EMAIL_HOST and InvenTreeSetting.get_setting('LOGIN_ENABLE_REG', True): - return super().is_open_for_signup(request) + return super().is_open_for_signup(request, *args, **kwargs) return False def save_user(self, request, user, form, commit=True):