From 1565d3c3b7f62320282f4c8f69be1ab5529b0a4e Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Thu, 16 May 2024 00:28:32 +0200 Subject: [PATCH] Show new line in Zotero field --- apis_ontology/tables.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apis_ontology/tables.py b/apis_ontology/tables.py index af5cb2a..9e69dde 100644 --- a/apis_ontology/tables.py +++ b/apis_ontology/tables.py @@ -4,7 +4,11 @@ from django_tables2.utils import A from .models import Instance, Person, Place, TibScholRelationMixin, Work -from .templatetags.filter_utils import render_coordinate, render_links +from .templatetags.filter_utils import ( + render_coordinate, + render_links, + render_list_field, +) from .templatetags.parse_comment import parse_comment import django_tables2 as tables @@ -118,7 +122,7 @@ def render_support_notes(self, value): return mark_safe(parse_comment(value)) def render_zotero_refs(self, value): - return mark_safe(parse_comment(value)) + return mark_safe(parse_comment(render_list_field(value))) def render_obj(self, record): # return str(record) + str(self.context["object"].pk)