shuup.admin.modules.users.views package¶
Submodules¶
shuup.admin.modules.users.views.detail module¶
-
class
shuup.admin.modules.users.views.detail.
BaseUserForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
base_fields
= OrderedDict([('password', <django.forms.fields.CharField object>), ('permission_info', <django.forms.fields.CharField object>), ('permission_groups', <django.forms.fields.CharField object>)])¶
-
declared_fields
= OrderedDict([('password', <django.forms.fields.CharField object>), ('permission_info', <django.forms.fields.CharField object>), ('permission_groups', <django.forms.fields.CharField object>)])¶
-
media
¶
-
-
class
shuup.admin.modules.users.views.detail.
UserDetailToolbar
(view)[source]¶ Bases:
shuup.admin.toolbar.Toolbar
-
class
shuup.admin.modules.users.views.detail.
UserDetailView
(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/admin/users/detail.jinja'¶
-
context_object_name
= 'user'¶
-
fields
¶
-
-
class
shuup.admin.modules.users.views.detail.
LoginAsUserView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
¶ alias of
User
-
can_impersonate_staff
= False¶
-
permission_str
= 'user.login-as'¶
-
-
class
shuup.admin.modules.users.views.detail.
LoginAsStaffUserView
(**kwargs)[source]¶ Bases:
shuup.admin.modules.users.views.detail.LoginAsUserView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
¶ alias of
User
-
can_impersonate_staff
= True¶
-
permission_str
= 'user.login-as-staff'¶
-
shuup.admin.modules.users.views.list module¶
-
class
shuup.admin.modules.users.views.list.
UserListView
[source]¶ Bases:
shuup.admin.utils.views.PicotableListView
-
model
= 'auth.User'¶
-
default_columns
= [<Column: Username> username, <Column: Email> email, <Column: First Name> first_name, <Column: Last Name> last_name, <Column: Active> is_active, <Column: Access to Admin Panel> is_staff]¶
-
mass_actions_provider_key
= 'user_list_mass_actions_provider'¶
-
shuup.admin.modules.users.views.password module¶
-
class
shuup.admin.modules.users.views.password.
PasswordChangeForm
(changing_user, target_user, *args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
-
error_messages
= {'password_mismatch': "The two password fields didn't match.", 'password_incorrect': 'Your old password was entered incorrectly. Please enter it again.'}¶
-
base_fields
= OrderedDict([('old_password', <django.forms.fields.CharField object>), ('password1', <django.forms.fields.CharField object>), ('password2', <django.forms.fields.CharField object>)])¶
-
declared_fields
= OrderedDict([('old_password', <django.forms.fields.CharField object>), ('password1', <django.forms.fields.CharField object>), ('password2', <django.forms.fields.CharField object>)])¶
-
media
¶
-
-
class
shuup.admin.modules.users.views.password.
UserChangePasswordView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.UpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
form_class
¶ alias of
PasswordChangeForm
-
template_name
= 'shuup/admin/users/change_password.jinja'¶
-
model
= 'auth.User'¶
-
title
= 'Change User Password'¶
-
-
class
shuup.admin.modules.users.views.password.
UserResetPasswordView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
= 'auth.User'¶
-
template_name
= 'shuup/admin/users/reset_password.jinja'¶
-
title
= 'Reset User Password'¶
-
shuup.admin.modules.users.views.permissions module¶
-
class
shuup.admin.modules.users.views.permissions.
PermissionChangeFormBase
(changing_user, *args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
base_fields
= OrderedDict([('old_password', <django.forms.fields.CharField object>)])¶
-
declared_fields
= OrderedDict([('old_password', <django.forms.fields.CharField object>)])¶
-
media
¶
-
-
class
shuup.admin.modules.users.views.permissions.
UserChangePermissionsView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.UpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/admin/users/change_permissions.jinja'¶
-
model
= 'auth.User'¶
-
title
= 'Change User Permissions'¶
-
Module contents¶
-
class
shuup.admin.modules.users.views.
UserListView
[source]¶ Bases:
shuup.admin.utils.views.PicotableListView
-
default_columns
= [<Column: Username> username, <Column: Email> email, <Column: First Name> first_name, <Column: Last Name> last_name, <Column: Active> is_active, <Column: Access to Admin Panel> is_staff]¶
-
mass_actions_provider_key
= 'user_list_mass_actions_provider'¶
-
model
= 'auth.User'¶
-
-
class
shuup.admin.modules.users.views.
UserDetailView
(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
context_object_name
= 'user'¶
-
fields
¶
-
template_name
= 'shuup/admin/users/detail.jinja'¶
-
-
class
shuup.admin.modules.users.views.
UserChangePasswordView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.UpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
form_class
¶ alias of
PasswordChangeForm
-
model
= 'auth.User'¶
-
template_name
= 'shuup/admin/users/change_password.jinja'¶
-
title
= 'Change User Password'¶
-
-
class
shuup.admin.modules.users.views.
UserResetPasswordView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
= 'auth.User'¶
-
template_name
= 'shuup/admin/users/reset_password.jinja'¶
-
title
= 'Reset User Password'¶
-
-
class
shuup.admin.modules.users.views.
UserChangePermissionsView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.UpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
= 'auth.User'¶
-
template_name
= 'shuup/admin/users/change_permissions.jinja'¶
-
title
= 'Change User Permissions'¶
-
-
class
shuup.admin.modules.users.views.
LoginAsUserView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
can_impersonate_staff
= False¶
-
model
¶ alias of
User
-
permission_str
= 'user.login-as'¶
-
-
class
shuup.admin.modules.users.views.
LoginAsStaffUserView
(**kwargs)[source]¶ Bases:
shuup.admin.modules.users.views.detail.LoginAsUserView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
can_impersonate_staff
= True¶
-
model
¶ alias of
User
-
permission_str
= 'user.login-as-staff'¶
-