shuup.admin.modules.settings.views package

Submodules

shuup.admin.modules.settings.views.list module

class shuup.admin.modules.settings.views.list.ListSettingsView(**kwargs)[source]

Bases: FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

form_class

alias of ColumnSettingsForm

template_name = 'shuup/admin/edit_settings.jinja'
dispatch(request, *args, **kwargs)[source]
get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

get_initial()[source]

Return the initial data to use for forms on this view.

form_valid(form)[source]

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

get_context_data(**kwargs)[source]

Insert the form into the context dict.

shuup.admin.modules.settings.views.system module

class shuup.admin.modules.settings.views.system.SystemSettingsView(**kwargs)[source]

Bases: FormPartsViewMixin, FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

form_class = None
template_name = 'shuup/admin/settings/edit.jinja'
base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.settings.forms.system.OrderSettingsFormPart'>]
form_valid(form)[source]

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

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

save_form_parts(form)[source]
get_context_data(**kwargs)[source]

Insert the form into the context dict.

Module contents

class shuup.admin.modules.settings.views.ListSettingsView(**kwargs)[source]

Bases: FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

dispatch(request, *args, **kwargs)[source]
form_class

alias of ColumnSettingsForm

form_valid(form)[source]

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

get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

get_initial()[source]

Return the initial data to use for forms on this view.

template_name = 'shuup/admin/edit_settings.jinja'
class shuup.admin.modules.settings.views.SystemSettingsView(**kwargs)[source]

Bases: FormPartsViewMixin, FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.settings.forms.system.OrderSettingsFormPart'>]
form_class = None
form_valid(form)[source]

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

get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

save_form_parts(form)[source]
template_name = 'shuup/admin/settings/edit.jinja'