shuup.admin.template_helpers package

Submodules

shuup.admin.template_helpers.shuup_admin module

This module is installed as the shuup_admin template function namespace.

shuup.admin.template_helpers.shuup_admin.get_menu_entry_categories(context)[source]
shuup.admin.template_helpers.shuup_admin.get_front_url(context)[source]
shuup.admin.template_helpers.shuup_admin.get_config(context)[source]
shuup.admin.template_helpers.shuup_admin.model_url(context, model, kind='detail', default=None, **kwargs)[source]

Get a model URL of the given kind for a model (instance or class).

Parameters:
  • context (jinja2.runtime.Context) – Jinja rendering context

  • model (django.db.Model) – The model instance or class.

  • kind (str) – The URL kind to retrieve. See get_model_url.

  • default (str) – Default value to return if model URL retrieval fails.

Returns:

URL string.

Return type:

str

Module contents