Skip to content

Commit

Permalink
fix: use dictionary get method to access skill id in skills template
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcphee committed Nov 6, 2024
1 parent f4efb3f commit 9ec6f1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.id False %}
{% skill_filter_tree skills person_skill_form.instance.skill.get.id False %}
{% else %}
{% skill_filter_tree skills None False %}
{% endif %}
Expand Down

0 comments on commit 9ec6f1d

Please sign in to comment.