shuup.admin.modules.contacts.views package
Submodules
shuup.admin.modules.contacts.views.detail module
- class shuup.admin.modules.contacts.views.detail.ContactDetailToolbar(contact, request)[source]
Bases:
Toolbar
- class shuup.admin.modules.contacts.views.detail.ContactDetailView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/contacts/detail.jinja'
- context_object_name = 'contact'
- get_object(*args, **kwargs)[source]
Return the object the view is displaying.
Require
self.queryset
and apk
orslug
argument in the URLconf. Subclasses can override this to return any object.
shuup.admin.modules.contacts.views.edit module
- class shuup.admin.modules.contacts.views.edit.ContactEditView(**kwargs)[source]
Bases:
SaveFormPartsMixin
,FormPartsViewMixin
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/contacts/edit.jinja'
- context_object_name = 'contact'
- get_object(queryset=None)[source]
Return the object the view is displaying.
Require
self.queryset
and apk
orslug
argument in the URLconf. Subclasses can override this to return any object.
shuup.admin.modules.contacts.views.list module
- class shuup.admin.modules.contacts.views.list.ContactTypeFilter[source]
Bases:
ChoicesFilter
- class shuup.admin.modules.contacts.views.list.ContactListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Type> type, <Column: Email> email, <Column: Phone> phone, <Column: Active> is_active, <Column: # Orders> n_orders, <Column: Groups> groups, <Column: Shops> shops, <Column: Registered in> registration_shop]
- mass_actions = ['shuup.admin.modules.contacts.mass_actions:EditContactsAction', 'shuup.admin.modules.contacts.mass_actions:EditContactGroupsAction', 'shuup.admin.modules.contacts.mass_actions:ExportContactsCSVAction']
shuup.admin.modules.contacts.views.mass_edit module
- class shuup.admin.modules.contacts.views.mass_edit.ContactMassEditView(**kwargs)[source]
Bases:
MassEditMixin
,FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- title = 'Mass Edit: Contacts'
- form_class
alias of
MassEditForm
- class shuup.admin.modules.contacts.views.mass_edit.ContactGroupMassEditView(**kwargs)[source]
Bases:
MassEditMixin
,FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- title = 'Mass Edit: Contact Groups'
- form_class
alias of
GroupMassEditForm
shuup.admin.modules.contacts.views.reset module
- class shuup.admin.modules.contacts.views.reset.ContactResetPasswordView(**kwargs)[source]
Bases:
UserResetPasswordView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
Module contents
- class shuup.admin.modules.contacts.views.ContactListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Type> type, <Column: Email> email, <Column: Phone> phone, <Column: Active> is_active, <Column: # Orders> n_orders, <Column: Groups> groups, <Column: Shops> shops, <Column: Registered in> registration_shop]
- 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.
- mass_actions = ['shuup.admin.modules.contacts.mass_actions:EditContactsAction', 'shuup.admin.modules.contacts.mass_actions:EditContactGroupsAction', 'shuup.admin.modules.contacts.mass_actions:ExportContactsCSVAction']
- class shuup.admin.modules.contacts.views.ContactDetailView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'contact'
- get_object(*args, **kwargs)[source]
Return the object the view is displaying.
Require
self.queryset
and apk
orslug
argument in the URLconf. Subclasses can override this to return any object.
- 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/contacts/detail.jinja'
- class shuup.admin.modules.contacts.views.ContactResetPasswordView(**kwargs)[source]
Bases:
UserResetPasswordView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class shuup.admin.modules.contacts.views.ContactEditView(**kwargs)[source]
Bases:
SaveFormPartsMixin
,FormPartsViewMixin
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'contact'
- get_object(queryset=None)[source]
Return the object the view is displaying.
Require
self.queryset
and apk
orslug
argument in the URLconf. Subclasses can override this to return any object.
- 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/contacts/edit.jinja'
- class shuup.admin.modules.contacts.views.ContactGroupMassEditView(**kwargs)[source]
Bases:
MassEditMixin
,FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- form_class
alias of
GroupMassEditForm
- title = 'Mass Edit: Contact Groups'
- class shuup.admin.modules.contacts.views.ContactMassEditView(**kwargs)[source]
Bases:
MassEditMixin
,FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- form_class
alias of
MassEditForm
- title = 'Mass Edit: Contacts'