shuup.admin.modules.contact_groups package
Subpackages
- shuup.admin.modules.contact_groups.views package
- Submodules
- shuup.admin.modules.contact_groups.views.delete module
- shuup.admin.modules.contact_groups.views.edit module
- shuup.admin.modules.contact_groups.views.forms module
- shuup.admin.modules.contact_groups.views.list module
- Module contents
Module contents
- class shuup.admin.modules.contact_groups.ContactGroupModule[source]
Bases:
AdminModule
- name = 'Contact Groups'
- 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