shuup.admin.modules.users.views package

Submodules

shuup.admin.modules.users.views.detail module

shuup.admin.modules.users.views.detail.get_front_url()[source]
shuup.admin.modules.users.views.detail.get_admin_url()[source]
class shuup.admin.modules.users.views.detail.BaseUserForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

clean()[source]
save(commit=True)[source]
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
get_form_class()[source]
get_queryset()[source]
get_initial()[source]
get_toolbar()[source]
save_form(form)[source]
post(request, *args, **kwargs)[source]
dispatch(request, *args, **kwargs)[source]
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'
get_url()[source]
post(request, *args, **kwargs)[source]
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'
get_url()[source]

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]
toolbar_buttons_provider_key = 'user_list_toolbar_provider'
mass_actions_provider_key = 'user_list_mass_actions_provider'
get_model()[source]
get_queryset()[source]
get_context_data(**kwargs)[source]
get_object_abstract(instance, item)[source]

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.'}
clean_password2()[source]
clean_old_password()[source]

Validates that the old_password field is correct.

save(commit=True)[source]
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'
get_queryset()[source]
get_toolbar()[source]
get_form_kwargs()[source]
get_context_data(**kwargs)[source]
form_valid(form)[source]
get_success_url()[source]
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'
get_queryset()[source]
process_user(user)[source]
post(request, *args, **kwargs)[source]
get_success_url()[source]

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

clean_old_password()[source]

Validates that the old_password field is correct.

clean_members()[source]
clean_permission_groups()[source]
clean()[source]
save()[source]
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'
get_form_class()[source]
get_queryset()[source]
get_toolbar()[source]
get_form_kwargs()[source]
get_context_data(**kwargs)[source]
form_valid(form)[source]
get_success_url()[source]

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]
get_context_data(**kwargs)[source]
get_model()[source]
get_object_abstract(instance, item)[source]
get_queryset()[source]
mass_actions_provider_key = 'user_list_mass_actions_provider'
model = 'auth.User'
toolbar_buttons_provider_key = 'user_list_toolbar_provider'
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'
dispatch(request, *args, **kwargs)[source]
fields
get_form_class()[source]
get_initial()[source]
get_queryset()[source]
get_toolbar()[source]
post(request, *args, **kwargs)[source]
save_form(form)[source]
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

form_valid(form)[source]
get_context_data(**kwargs)[source]
get_form_kwargs()[source]
get_queryset()[source]
get_success_url()[source]
get_toolbar()[source]
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.

get_queryset()[source]
get_success_url()[source]
model = 'auth.User'
post(request, *args, **kwargs)[source]
process_user(user)[source]
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.

form_valid(form)[source]
get_context_data(**kwargs)[source]
get_form_class()[source]
get_form_kwargs()[source]
get_queryset()[source]
get_success_url()[source]
get_toolbar()[source]
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
get_url()[source]
model

alias of User

permission_str = 'user.login-as'
post(request, *args, **kwargs)[source]
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
get_url()[source]
model

alias of User

permission_str = 'user.login-as-staff'