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 11, 2024
1 parent ae78620 commit dae8760
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 dae8760

Please sign in to comment.