shuup.admin.modules.users.views package

Submodules

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

shuup.admin.modules.users.views.detail.get_front_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 at 0x7fabcdc19358>), ('permission_info', <django.forms.fields.CharField object at 0x7fabcdc119e8>), ('permission_groups', <django.forms.fields.CharField object at 0x7fabcdc116a0>)])
declared_fields = OrderedDict([('password', <django.forms.fields.CharField object at 0x7fabcdc19358>), ('permission_info', <django.forms.fields.CharField object at 0x7fabcdc119e8>), ('permission_groups', <django.forms.fields.CharField object at 0x7fabcdc116a0>)])
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_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

post(request, *args, **kwargs)[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: Staff> is_staff, <Column: Superuser> is_superuser]
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_incorrect': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fabcdc11ef0>, 'password_mismatch': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fabcdc11f60>}
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 at 0x7fabcd65fd68>), ('password1', <django.forms.fields.CharField object at 0x7fabcd6c1978>), ('password2', <django.forms.fields.CharField object at 0x7fabcdc735c0>)])
declared_fields = OrderedDict([('old_password', <django.forms.fields.CharField object at 0x7fabcd65fd68>), ('password1', <django.forms.fields.CharField object at 0x7fabcd6c1978>), ('password2', <django.forms.fields.CharField object at 0x7fabcdc735c0>)])
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 at 0x7fabcd78c470>)])
declared_fields = OrderedDict([('old_password', <django.forms.fields.CharField object at 0x7fabcd78c470>)])
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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: Staff> is_staff, <Column: Superuser> is_superuser]
get_context_data(**kwargs)[source]
get_model()[source]
get_object_abstract(instance, item)[source]
get_queryset()[source]
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'
dispatch(request, *args, **kwargs)[source]
fields
get_form_class()[source]
get_initial()[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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
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.

model

alias of User

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