From 34f813c91fb7891e2727579aceb96029a19ecf33 Mon Sep 17 00:00:00 2001 From: "G. Allegri" Date: Mon, 16 Oct 2023 12:48:18 +0200 Subject: [PATCH] fix image template src reference --- geonode/layers/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geonode/layers/api/serializers.py b/geonode/layers/api/serializers.py index 3d39fdefe20..d5733663a56 100644 --- a/geonode/layers/api/serializers.py +++ b/geonode/layers/api/serializers.py @@ -101,7 +101,7 @@ def get_attribute(self, instance): elif _field.featureinfo_type == Attribute.TYPE_IMAGE: _template += ( '
\ - %s
' + %s' % (_field.attribute, _field.attribute, _label, _label) ) elif _field.featureinfo_type in ( @@ -242,4 +242,4 @@ class DatasetMetadataSerializer(serializers.Serializer): metadata_file = MetadataFileField(required=True) class Meta: - fields = "metadata_file" + fields = "metadata_file" \ No newline at end of file