shuup.admin.modules.product_types.views package

Submodules

shuup.admin.modules.product_types.views.delete module

class shuup.admin.modules.product_types.views.delete.ProductTypeDeleteView(**kwargs)[source]

Bases: DetailView

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

model

alias of ProductType

context_object_name = 'product_type'
get(request, *args, **kwargs)[source]
post(request, *args, **kwargs)[source]

shuup.admin.modules.product_types.views.edit module

class shuup.admin.modules.product_types.views.edit.ProductTypeForm(**kwargs)[source]

Bases: MultiLanguageModelForm

class Meta[source]

Bases: object

model

alias of ProductType

exclude = ()
__init__(**kwargs)[source]
save(commit=True)[source]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

base_fields = {'attributes': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'name': <django.forms.fields.CharField object>}
declared_fields = {'attributes': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'name': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.

class shuup.admin.modules.product_types.views.edit.ProductTypeEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

model

alias of ProductType

form_class

alias of ProductTypeForm

template_name = 'shuup/admin/product_types/edit.jinja'
context_object_name = 'product_type'
get_toolbar()[source]

shuup.admin.modules.product_types.views.list module

class shuup.admin.modules.product_types.views.list.ProductTypeListView[source]

Bases: PicotableListView

model

alias of ProductType

default_columns = [<Column: Name> name, <Column: Number of Attributes> n_attributes]
toolbar_buttons_provider_key: str | None = 'product_type_list_toolbar_provider'
mass_actions_provider_key: str | None = 'product_type_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.product_types.views.ProductTypeEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

context_object_name = 'product_type'
form_class

alias of ProductTypeForm

get_toolbar()[source]
model

alias of ProductType

template_name = 'shuup/admin/product_types/edit.jinja'
class shuup.admin.modules.product_types.views.ProductTypeListView[source]

Bases: PicotableListView

default_columns = [<Column: Name> name, <Column: Number of Attributes> n_attributes]
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 = 'product_type_list_mass_actions_provider'
model

alias of ProductType

toolbar_buttons_provider_key: str | None = 'product_type_list_toolbar_provider'
class shuup.admin.modules.product_types.views.ProductTypeDeleteView(**kwargs)[source]

Bases: DetailView

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

context_object_name = 'product_type'
get(request, *args, **kwargs)[source]
model

alias of ProductType

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