shuup.admin.modules.manufacturers.views package

Submodules

shuup.admin.modules.manufacturers.views.edit module

class shuup.admin.modules.manufacturers.views.edit.ManufacturerForm(*args, **kwargs)[source]

Bases: ShuupAdminFormNoTranslation

class Meta[source]

Bases: object

model

alias of Manufacturer

fields = ('name', 'shops', 'url', 'logo')
__init__(*args, **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 = {'logo': <filer.fields.image.AdminImageFormField object>, 'name': <django.forms.fields.CharField object>, 'shops': <django.forms.models.ModelMultipleChoiceField object>, 'url': <django.forms.fields.CharField object>}
declared_fields = {}
property media

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

class shuup.admin.modules.manufacturers.views.edit.ManufacturerEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

model

alias of Manufacturer

form_class

alias of ManufacturerForm

template_name = 'shuup/admin/manufacturers/edit.jinja'
context_object_name = 'manufacturer'
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_form_kwargs()[source]

Return the keyword arguments for instantiating the form.

get_toolbar()[source]
get_context_data(**kwargs)[source]

Insert the form into the context dict.

class shuup.admin.modules.manufacturers.views.edit.ManufacturerDeleteView(**kwargs)[source]

Bases: DetailView

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

model

alias of Manufacturer

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.

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

shuup.admin.modules.manufacturers.views.list module

class shuup.admin.modules.manufacturers.views.list.ManufacturerListView[source]

Bases: PicotableListView

model

alias of Manufacturer

default_columns = [<Column: Logo> logo, <Column: Name> name]
toolbar_buttons_provider_key: str | None = 'manufacturer_list_toolbar_provider'
mass_actions_provider_key: str | None = 'manufacturer_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.manufacturers.views.ManufacturerEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

context_object_name = 'manufacturer'
form_class

alias of ManufacturerForm

get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_form_kwargs()[source]

Return the keyword arguments for instantiating the form.

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 Manufacturer

template_name = 'shuup/admin/manufacturers/edit.jinja'
class shuup.admin.modules.manufacturers.views.ManufacturerListView[source]

Bases: PicotableListView

default_columns = [<Column: Logo> logo, <Column: Name> name]
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 = 'manufacturer_list_mass_actions_provider'
model

alias of Manufacturer

toolbar_buttons_provider_key: str | None = 'manufacturer_list_toolbar_provider'
class shuup.admin.modules.manufacturers.views.ManufacturerDeleteView(**kwargs)[source]

Bases: DetailView

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

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.

model

alias of Manufacturer

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