shuup.admin.modules.categories package
Subpackages
- shuup.admin.modules.categories.views package
- Submodules
- shuup.admin.modules.categories.views.copy module
- shuup.admin.modules.categories.views.delete module
- shuup.admin.modules.categories.views.edit module
- shuup.admin.modules.categories.views.list module
CategoryListView
CategoryListView.model
CategoryListView.category_status_choices
CategoryListView.default_columns
CategoryListView.toolbar_buttons_provider_key
CategoryListView.mass_actions_provider_key
CategoryListView.get_name_filter_choices
CategoryListView.get_queryset
CategoryListView.format_name
CategoryListView.get_object_abstract
- Module contents
CategoryEditView
CategoryDeleteView
CategoryListView
CategoryListView.category_status_choices
CategoryListView.default_columns
CategoryListView.format_name
CategoryListView.get_name_filter_choices
CategoryListView.get_object_abstract
CategoryListView.get_queryset
CategoryListView.mass_actions_provider_key
CategoryListView.model
CategoryListView.toolbar_buttons_provider_key
CategoryCopyVisibilityView
Submodules
shuup.admin.modules.categories.form_parts module
shuup.admin.modules.categories.forms module
- class shuup.admin.modules.categories.forms.CategoryBaseForm(request, **kwargs)[source]
Bases:
ShuupAdminForm
- class Meta[source]
Bases:
object
- fields = ('parent', 'status', 'ordering', 'visibility', 'visible_in_menu', 'visibility_groups', 'name', 'image', 'description', 'slug')
- widgets = {'description': <shuup.admin.forms.widgets.TextEditorWidget object>, 'parent': <shuup.admin.forms.widgets.QuickAddCategorySelect object>, 'status': <class 'django.forms.widgets.RadioSelect'>, 'visibility': <class 'django.forms.widgets.RadioSelect'>}
- 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 = {'description': <django.forms.fields.CharField object>, 'image': <filer.fields.image.AdminImageFormField object>, 'name': <django.forms.fields.CharField object>, 'ordering': <django.forms.fields.IntegerField object>, 'parent': <mptt.forms.TreeNodeChoiceField object>, 'slug': <django.forms.fields.SlugField object>, 'status': <enumfields.forms.EnumChoiceField object>, 'visibility': <enumfields.forms.EnumChoiceField object>, 'visibility_groups': <django.forms.models.ModelMultipleChoiceField object>, 'visible_in_menu': <django.forms.fields.BooleanField object>}
- declared_fields = {'description': <django.forms.fields.CharField object>, 'name': <django.forms.fields.CharField object>, 'slug': <django.forms.fields.SlugField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.admin.modules.categories.forms.CategoryProductForm(shop, category, **kwargs)[source]
Bases:
Form
- base_fields = {'additional_products': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'primary_products': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'remove_products': <django.forms.fields.MultipleChoiceField object>}
- declared_fields = {'additional_products': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'primary_products': <shuup.admin.forms.fields.ObjectSelect2MultipleField object>, 'remove_products': <django.forms.fields.MultipleChoiceField object>}
- property media
Return all media required to render the widgets on this form.
Module contents
- class shuup.admin.modules.categories.CategoryModule[source]
Bases:
AdminModule
- name = 'Categories'
- category = 'Categories'
- Return type:
- 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:
object (django.db.models.Model) – A object instance (or object class).
kind (str) – URL kind. Currently “detail”, “list” or “new”.
shop (shuup.core.models.Shop|None) – The shop that owns the resource.
- Returns:
The reversed URL or none.
- Return type:
str|None