support custom_changelist_breadcrumb_url
diff --git a/xos/core/admin.py b/xos/core/admin.py
index c753de9..e09b155 100644
--- a/xos/core/admin.py
+++ b/xos/core/admin.py
@@ -123,6 +123,7 @@
# allow custom application breadcrumb url and name
extra_context["custom_app_breadcrumb_url"] = getattr(self, "custom_app_breadcrumb_url", None)
extra_context["custom_app_breadcrumb_name"] = getattr(self, "custom_app_breadcrumb_name", None)
+ extra_context["custom_changelist_breadcrumb_url"] = getattr(self, "custom_changelist_breadcrumb_url", None)
# for Service admins to render their Administration page
if getattr(self, "extracontext_registered_admins", False):
diff --git a/xos/templates/admin/change_form_bc.html b/xos/templates/admin/change_form_bc.html
index 70b5e9f..bd3a310 100644
--- a/xos/templates/admin/change_form_bc.html
+++ b/xos/templates/admin/change_form_bc.html
@@ -19,7 +19,11 @@
</li>
<li>
{% if has_change_permission %}
- <a href="{% url opts|admin_urlname:'changelist' %}">
+ {% if custom_changelist_breadcrumb_url %}
+ <a href="{{ custom_changelist_breadcrumb_url }}">
+ {% else %}
+ <a href="{% url opts|admin_urlname:'changelist' %}">
+ {% endif %}
{{ opts.verbose_name_plural|capfirst }}</a>{% else %}
{{ opts.verbose_name_plural|capfirst }}{% endif %}
<span class="divider">»</span>