tcms.kiwi_auth.views module¶
- class tcms.kiwi_auth.views.Confirm(**kwargs)[source]¶
Bases:
RedirectView
Confirm the user registration
- get_redirect_url(*args, **kwargs)[source]¶
Return the URL redirect to. Keyword arguments from the URL pattern match generating the redirect request are provided as kwargs to this method.
- http_method_names = ['get']¶
- class tcms.kiwi_auth.views.GroupsRouter(**kwargs)[source]¶
Bases:
View
- dispatch(request, *args, **kwargs)¶
- http_method_names = ['get']¶
- class tcms.kiwi_auth.views.PasswordResetView(**kwargs)[source]¶
Bases:
PasswordResetView
- form_class¶
alias of
PasswordResetForm
- class tcms.kiwi_auth.views.Profile(**kwargs)[source]¶
Bases:
View
Show user profiles
- http_method_names = ['get']¶
- class tcms.kiwi_auth.views.Register(**kwargs)[source]¶
Bases:
View
Register method of account
- form_class¶
alias of
RegistrationForm
- static show_messages_with_site_admins_emails_as_links(request)[source]¶
Show messages with site admins emails as links.
- static show_messages_with_super_user_emails_as_links(request)[source]¶
Show messages with super users emails as links.
- success_url = '/'¶
- template_name = 'registration/registration_form.html'¶
- class tcms.kiwi_auth.views.ResetUserEmail(**kwargs)[source]¶
Bases:
FormView
- dispatch(request, *args, **kwargs)¶
- form_class¶
alias of
ResetUserEmailForm
- get(request, *args, **kwargs)[source]¶
Handle GET requests: instantiate a blank version of the form.
- post(request, *args, **kwargs)[source]¶
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- target_user = None¶
- template_name = 'accounts/reset_user_email.html'¶