shuup.notify.admin_module package
Subpackages
- shuup.notify.admin_module.views package
- Submodules
- shuup.notify.admin_module.views.delete module
- shuup.notify.admin_module.views.edit module
- shuup.notify.admin_module.views.editor module
- shuup.notify.admin_module.views.email_template module
- shuup.notify.admin_module.views.list module
ScriptListView
ScriptListView.template_name
ScriptListView.model
ScriptListView.default_columns
ScriptListView.toolbar_buttons_provider_key
ScriptListView.mass_actions_provider_key
ScriptListView.get_object_url
ScriptListView.get_event_identifier_text
ScriptListView.get_toolbar
ScriptListView.get_object_abstract
ScriptListView.get_queryset
- shuup.notify.admin_module.views.template module
- Module contents
script_item_editor
ScriptEditView
EditScriptContentView
ScriptListView
ScriptListView.default_columns
ScriptListView.get_event_identifier_text
ScriptListView.get_object_abstract
ScriptListView.get_object_url
ScriptListView.get_queryset
ScriptListView.get_toolbar
ScriptListView.mass_actions_provider_key
ScriptListView.model
ScriptListView.template_name
ScriptListView.toolbar_buttons_provider_key
ScriptTemplateView
ScriptTemplateConfigView
ScriptTemplateEditView
Submodules
shuup.notify.admin_module.forms module
- class shuup.notify.admin_module.forms.ScriptForm(**kwargs)[source]
Bases:
ModelForm
- 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 = {'enabled': <django.forms.fields.BooleanField object>, 'event_identifier': <django.forms.fields.ChoiceField object>, 'name': <django.forms.fields.CharField object>}
- declared_fields = {'enabled': <django.forms.fields.BooleanField object>, 'event_identifier': <django.forms.fields.ChoiceField object>, 'name': <django.forms.fields.CharField object>}
- property media
Return all media required to render the widgets on this form.
shuup.notify.admin_module.utils module
Module contents
- class shuup.notify.admin_module.NotifyAdminModule[source]
Bases:
AdminModule
- name = 'Notifications'
- 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
- class shuup.notify.admin_module.EmailTemplateAdminModule[source]
Bases:
AdminModule
- name = 'Email Template'
- 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