diff --git a/apis_ontology/tables.py b/apis_ontology/tables.py index e949576..85be13f 100644 --- a/apis_ontology/tables.py +++ b/apis_ontology/tables.py @@ -90,7 +90,7 @@ def render_author(self, record): context = { "entity_id": record.author_id, "entity_name": record.author_name, - "entity_uri": f"/apis/apis_ontology.person/{record.author_id}", # TODO: use urls + "entity_uri": Person.objects.get(pk=record.author_id).uri, } return mark_safe( render_to_string("apis_ontology/linked_entity_column.html", context) @@ -121,7 +121,7 @@ def render_author(self, record): context = { "entity_id": record.author_id, "entity_name": record.author_name, - "entity_uri": f"/apis/apis_ontology.person/{record.author_id}", # TODO: use urls + "entity_uri": Person.objects.get(pk=record.author_id).uri, } return mark_safe( render_to_string("apis_ontology/linked_entity_column.html", context)