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)
get(request, *args, **kwargs)[source]
http_method_names = ['get']
class tcms.kiwi_auth.views.LoginViewWithCustomTemplate(**kwargs)[source]

Bases: LoginView


Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.

class tcms.kiwi_auth.views.PasswordResetView(**kwargs)[source]

Bases: PasswordResetView


alias of PasswordResetForm

class tcms.kiwi_auth.views.Profile(**kwargs)[source]

Bases: View

Show user profiles

get(request, username)[source]
http_method_names = ['get']
class tcms.kiwi_auth.views.Register(**kwargs)[source]

Bases: View

Register method of account


alias of RegistrationForm


Get request handler.


Post request handler.

Show messages with site admins emails as links.

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)

alias of ResetUserEmailForm


If the form is valid, redirect to the supplied URL.

get(request, *args, **kwargs)[source]

Handle GET requests: instantiate a blank version of the form.


Insert the form into the context dict.

init_user(request, pk)[source]
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'
class tcms.kiwi_auth.views.UsersRouter(**kwargs)[source]

Bases: View

dispatch(request, *args, **kwargs)
get(request, *args, **kwargs)[source]
http_method_names = ['get']