shuup.admin.modules.labels package

Submodules

shuup.admin.modules.labels.views module

class shuup.admin.modules.labels.views.LabelForm(**kwargs)[source]

Bases: ShuupAdminForm

class Meta[source]

Bases: object

model

alias of Label

exclude = ()
base_fields = {'identifier': <django.forms.fields.CharField object>, 'name': <django.forms.fields.CharField object>}
declared_fields = {'name': <django.forms.fields.CharField object>}
property media

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

class shuup.admin.modules.labels.views.LabelListView[source]

Bases: PicotableListView

model

alias of Label

url_identifier = 'label'
default_columns = [<Column: Identifier> identifier, <Column: Name> name, <Column: Created on> created_on, <Column: Modified on> modified_on]
class shuup.admin.modules.labels.views.LabelEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

model

alias of Label

form_class

alias of LabelForm

template_name = 'shuup/admin/labels/edit.jinja'
context_object_name = 'label'
get_toolbar()[source]
class shuup.admin.modules.labels.views.LabelDeleteView(**kwargs)[source]

Bases: DetailView

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

model

alias of Label

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

Module contents

class shuup.admin.modules.labels.LabelsModule[source]

Bases: AdminModule

name = 'Labels'
breadcrumbs_menu_entry = <shuup.admin.base.MenuEntry object>
get_urls()[source]
Return type:

list[django.urls.RegexURLPattern]

get_menu_entries(request)[source]
Return type:

list[shuup.admin.base.MenuEntry]

get_model_url(object, kind, shop=None)[source]

Retrieve an admin URL for the given object of the kind kind.

A falsy value must be returned if the module does not know how to reverse the given object.

Parameters:
Returns:

The reversed URL or none.

Return type:

str|None