From be63d34af609928f0d8f6a20442a52421c5f69c4 Mon Sep 17 00:00:00 2001 From: Adrian McPhee Date: Wed, 6 Nov 2024 12:58:08 +0100 Subject: [PATCH] fix: access skill id directly instead of using get() method in skills template --- apps/capabilities/talent/templates/talent/helper/skills.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/capabilities/talent/templates/talent/helper/skills.html b/apps/capabilities/talent/templates/talent/helper/skills.html index 7f985cd1..662c74c1 100644 --- a/apps/capabilities/talent/templates/talent/helper/skills.html +++ b/apps/capabilities/talent/templates/talent/helper/skills.html @@ -17,7 +17,7 @@ name="skills-{{ loop.index0 }}-skill" hx-trigger="change" hx-target="#ul_expertise_{{ loop.index0 }}" class="focus-visible:outline-transparent w-full rounded-md border-0 py-1.5 px-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> {% if person_skill_form.instance.skill %} - {% skill_filter_tree skills person_skill_form.instance.skill|get_dict_value:'id' False %} + {% skill_filter_tree skills person_skill_form.instance.skill.id False %} {% else %} {% skill_filter_tree skills None False %} {% endif %}