Skip to content

Commit

Permalink
False is also a value
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Jun 27, 2024
1 parent 3af6056 commit 460240f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{%- if field.get('sorted_choices') -%}
{%- set options = options|sort(case_sensitive=false, attribute='text') -%}
{%- endif -%}
{%- if data[field.field_name] -%}
{%- if data[field.field_name] or data[field.field_name] is false -%}
{%- set option_selected = data[field.field_name]|string -%}
{%- else -%}
{%- set option_selected = None -%}
Expand Down

0 comments on commit 460240f

Please sign in to comment.