From 0b0b2f7ddef2f4f0d63422219ae15a1b049e9051 Mon Sep 17 00:00:00 2001 From: mattiagiupponi <51856725+mattiagiupponi@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:50:40 +0100 Subject: [PATCH] [Fixes #12770] Thesaurus title label is not rendered (#12771) (cherry picked from commit 91f32c64e8d8e6f159368243d8dfac96fe5a8aca) --- geonode/base/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/geonode/base/forms.py b/geonode/base/forms.py index 6e01854d2ce..d91fc1dd578 100644 --- a/geonode/base/forms.py +++ b/geonode/base/forms.py @@ -343,6 +343,7 @@ def _get_thesauro_keyword_label(item, lang): @staticmethod def _get_thesauro_title_label(item, lang): + lang = remove_country_from_languagecode(lang) tname = ThesaurusLabel.objects.values_list("label", flat=True).filter(thesaurus=item).filter(lang=lang) if not tname: return Thesaurus.objects.get(id=item.id).title