From 7df428b95d08a0c37cf34103828e2cd413f62b7a Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 11 Apr 2024 11:10:54 +0200 Subject: [PATCH] fix(utils): use verbose_name for relation card title --- apis_core/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis_core/utils/helpers.py b/apis_core/utils/helpers.py index 5299679d2..6ec936e06 100644 --- a/apis_core/utils/helpers.py +++ b/apis_core/utils/helpers.py @@ -166,7 +166,7 @@ def triple_sidebar(pk: int, entity_name: str, request, detail=True): ) prefix = f"{other_entity_class_name}" - title_card = prefix + title_card = entity_class._meta.verbose_name tb_object = table_class(data=triples_related_by_entity, prefix=prefix) tb_object_open = request.GET.get(prefix + "page", None) entity_settings = get_entity_settings_by_modelname(entity_class.__name__)