def __init__(self, *args, **kwargs): self.helper = default_helper(form_tag=False) helper = get_form_helper(getattr(settings, 'REGISTRATION_PASSWORD_RESET_CHANGE_HELPER', None), default=default_helper) if helper is not None: self.helper = helper() super(PasswordResetChangeForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.instance = kwargs.pop('instance') helper = get_form_helper(getattr(settings, 'REGISTRATION_USER_EDIT_HELPER', None), default=default_helper) if helper is not None: self.helper = helper() super(UserForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): helper = get_form_helper(getattr(settings, 'REGISTRATION_LOGIN_HELPER', None), default=default_helper) if helper is not None: self.helper = helper() super(LoginForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): helper = get_form_helper(getattr(settings, 'REGISTRATION_FORM_HELPER', None), default=default_helper) if helper is not None: self.helper = helper() super(RegistrationWithCaptchaForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.helper = default_helper(form_tag=False) helper = get_form_helper(getattr( settings, 'REGISTRATION_PASSWORD_RESET_CHANGE_HELPER', None), default=default_helper) if helper is not None: self.helper = helper() super(PasswordResetChangeForm, self).__init__(*args, **kwargs)