Users app views

User management

User views.

class CreateUserView(**kwargs)

Bases: FormMessageMixin, CreateView

Create user view.

form_class

alias of UserRegistrationForm

success_message = 'Пользователь создан'

Success action message text (str).

class UpdateUserView(**kwargs)

Bases: CheckObjectOwnershipMixin, FormMessageMixin, UpdateView

Update user view.

model

alias of UserApp

form_class

alias of UserUpdateForm

success_message = 'Пользователь обновлен'

Success action message text (str).

class DeleteUserView(*args, **kwargs)

Bases: CheckObjectOwnershipMixin, FormMessageMixin, ObjectDeleteErrorMixin, DeleteView

Delete user view.

model

alias of UserApp

success_message = 'Пользователь удален'

Success action message text (str).

class UsersListView(**kwargs)

Bases: CheckAdminMixin, ListView

User list view.

model

alias of UserApp

User profile

User profile views.

class UserDetailView(**kwargs)

Bases: CheckObjectOwnershipMixin, DetailView

User detail view.

model

alias of UserApp

User authentication

User authentication views.

class UserLoginView(**kwargs)

Bases: FormMessageMixin, LoginView

User login view.

success_message = 'Вы вошли в приложение'

Success action message text (str).

class UserLogoutView(**kwargs)

Bases: FormMessageMixin, LogoutView

User logout view.

success_message = 'Вы вышли из приложения'

Success action message text (str).

get_default_redirect_url() str | None

Add success message.