Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
    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)
Ejemplo n.º 5
0
    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)
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
 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)