From c3da6186e07365f148d6b5de8196048011bf050e Mon Sep 17 00:00:00 2001 From: Giovanni Allegri Date: Mon, 16 Oct 2023 12:54:40 +0200 Subject: [PATCH] fix image template src reference (#11604) --- 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