Skip to content

Commit

Permalink
fix(utils): use verbose_name for relation card title
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 12, 2024
1 parent 1de88f0 commit 7df428b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_core/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 7df428b

Please sign in to comment.