shuup.admin.modules.categories.views package
Submodules
shuup.admin.modules.categories.views.copy module
shuup.admin.modules.categories.views.delete module
- class shuup.admin.modules.categories.views.delete.CategoryDeleteView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'category'
shuup.admin.modules.categories.views.edit module
- class shuup.admin.modules.categories.views.edit.CategoryEditView(**kwargs)[source]
Bases:
SaveFormPartsMixin
,FormPartsViewMixin
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/categories/edit.jinja'
- context_object_name = 'category'
- base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.categories.form_parts.CategoryBaseFormPart'>, <class 'shuup.admin.modules.categories.form_parts.CategoryProductFormPart'>]
shuup.admin.modules.categories.views.list module
- class shuup.admin.modules.categories.views.list.CategoryListView[source]
Bases:
PicotableListView
- category_status_choices = [(0, CategoryStatus.INVISIBLE), (1, CategoryStatus.VISIBLE)]
- default_columns = [<Column: Image> image, <Column: Name> name, <Column: Status> status, <Column: Visibility> visibility]
- 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 caseQuerySet
specific behavior will be enabled.
- get_object_abstract(instance, item)[source]
Get the object abstract lines (used for mobile layouts) for this object.
Supported keys in abstract line dicts are:
text (required)
title
class (CSS class name –
header
for instance)raw (boolean; whether or not the
text
is raw HTML)
- Parameters:
instance – The instance.
item – The item dict so far. Useful for reusing precalculated values.
- Returns:
Iterable of dicts to pass through to the picotable javascript.
- Return type:
Iterable[dict]
Module contents
- class shuup.admin.modules.categories.views.CategoryEditView(**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 = [<class 'shuup.admin.modules.categories.form_parts.CategoryBaseFormPart'>, <class 'shuup.admin.modules.categories.form_parts.CategoryProductFormPart'>]
- context_object_name = 'category'
- 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.
- template_name = 'shuup/admin/categories/edit.jinja'
- class shuup.admin.modules.categories.views.CategoryDeleteView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'category'
- class shuup.admin.modules.categories.views.CategoryListView[source]
Bases:
PicotableListView
- category_status_choices = [(0, CategoryStatus.INVISIBLE), (1, CategoryStatus.VISIBLE)]
- default_columns = [<Column: Image> image, <Column: Name> name, <Column: Status> status, <Column: Visibility> visibility]
- get_object_abstract(instance, item)[source]
Get the object abstract lines (used for mobile layouts) for this object.
Supported keys in abstract line dicts are:
text (required)
title
class (CSS class name –
header
for instance)raw (boolean; whether or not the
text
is raw HTML)
- Parameters:
instance – The instance.
item – The item dict so far. Useful for reusing precalculated values.
- Returns:
Iterable of dicts to pass through to the picotable javascript.
- Return type:
Iterable[dict]