shuup.admin.modules.suppliers.views package

Submodules

shuup.admin.modules.suppliers.views.delete module

class shuup.admin.modules.suppliers.views.delete.SupplierDeleteView(**kwargs)[source]

Bases: DetailView

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

model

alias of Supplier

get_success_url()[source]
get_queryset(*args, **kwargs)[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

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

shuup.admin.modules.suppliers.views.edit module

class shuup.admin.modules.suppliers.views.edit.SupplierEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

model

alias of Supplier

template_name = 'shuup/admin/suppliers/edit.jinja'
context_object_name = 'supplier'
base_form_part_classes: Any | Any = []
form_part_class_provide_key: str | None = 'admin_supplier_form_part'
get_toolbar()[source]
get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

form_valid(form)[source]

If the form is valid, save the associated model.

shuup.admin.modules.suppliers.views.list module

class shuup.admin.modules.suppliers.views.list.SupplierListView[source]

Bases: PicotableListView

model

alias of Supplier

default_columns = [<Column: Name> name, <Column: Type> type, <Column: Modules> supplier_modules]
toolbar_buttons_provider_key: str | None = 'supplier_list_toolbar_provider'
mass_actions_provider_key: str | None = 'supplier_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.

get_supplier_modules(instance)[source]
get_toolbar()[source]

Module contents

class shuup.admin.modules.suppliers.views.SupplierDeleteView(**kwargs)[source]

Bases: DetailView

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

get_queryset(*args, **kwargs)[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

get_success_url()[source]
model

alias of Supplier

post(request, *args, **kwargs)[source]
class shuup.admin.modules.suppliers.views.SupplierEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

base_form_part_classes: Any | Any = []
context_object_name = 'supplier'
form_part_class_provide_key: str | None = 'admin_supplier_form_part'
form_valid(form)[source]

If the form is valid, save the associated model.

get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

get_toolbar()[source]
model

alias of Supplier

template_name = 'shuup/admin/suppliers/edit.jinja'
class shuup.admin.modules.suppliers.views.SupplierListView[source]

Bases: PicotableListView

default_columns = [<Column: Name> name, <Column: Type> type, <Column: Modules> supplier_modules]
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.

get_supplier_modules(instance)[source]
get_toolbar()[source]
mass_actions_provider_key: str | None = 'supplier_list_mass_actions_provider'
model

alias of Supplier

toolbar_buttons_provider_key: str | None = 'supplier_list_toolbar_provider'