shuup.admin.modules.attributes.views package

Submodules

shuup.admin.modules.attributes.views.edit module

class shuup.admin.modules.attributes.views.edit.AttributeEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

model

alias of Attribute

template_name = 'shuup/admin/attributes/edit.jinja'
context_object_name = 'attribute'
base_form_part_classes: Any | Any = []
form_part_class_provide_key: str | None = 'admin_attribute_form_part'
add_form_errors_as_messages = True
get_toolbar()[source]
form_valid(form)[source]

If the form is valid, save the associated model.

class shuup.admin.modules.attributes.views.edit.AttributeDeleteView(**kwargs)[source]

Bases: DetailView

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

model

alias of Attribute

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

shuup.admin.modules.attributes.views.list module

class shuup.admin.modules.attributes.views.list.AttributeListView[source]

Bases: PicotableListView

model

alias of Attribute

default_columns = [<Column: Identifier> identifier, <Column: Name> name, <Column: Type> type, <Column: Visibility Mode> visibility_mode, <Column: Searchable> searchable, <Column: Used in # Product Types> n_product_types]
toolbar_buttons_provider_key: str | None = 'attribute_list_toolbar_provider'
mass_actions_provider_key: str | None = 'attribute_list_mass_actions_provider'
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

Module contents

class shuup.admin.modules.attributes.views.AttributeEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

add_form_errors_as_messages = True
base_form_part_classes: Any | Any = []
context_object_name = 'attribute'
form_part_class_provide_key: str | None = 'admin_attribute_form_part'
form_valid(form)[source]

If the form is valid, save the associated model.

get_toolbar()[source]
model

alias of Attribute

template_name = 'shuup/admin/attributes/edit.jinja'
class shuup.admin.modules.attributes.views.AttributeListView[source]

Bases: PicotableListView

default_columns = [<Column: Identifier> identifier, <Column: Name> name, <Column: Type> type, <Column: Visibility Mode> visibility_mode, <Column: Searchable> searchable, <Column: Used in # Product Types> n_product_types]
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

mass_actions_provider_key: str | None = 'attribute_list_mass_actions_provider'
model

alias of Attribute

toolbar_buttons_provider_key: str | None = 'attribute_list_toolbar_provider'