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')
- 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'
- 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
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]
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_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
- 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 caseQuerySet
specific behavior will be enabled.
- model
alias of
Manufacturer
- 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