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'
shuup.admin.modules.product_types.views.edit module
- class shuup.admin.modules.product_types.views.edit.ProductTypeForm(**kwargs)[source]
Bases:
MultiLanguageModelForm
- 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'
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]
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
- 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 caseQuerySet
specific behavior will be enabled.
- model
alias of
ProductType
- 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'
- model
alias of
ProductType