fix: remove unnecessary type-casting

This commit is contained in:
Sagar Vora 2021-02-25 15:54:50 +05:30
parent 0feaafff21
commit 3def386b05

View file

@ -169,7 +169,7 @@ data-fieldname="{{ df.fieldname }}" data-fieldtype="{{ df.fieldtype }}"
{%- if df.print_width.endswith("%") -%}
{{ df.print_width }}
{%- else -%}
{{ (df.print_width|str).replace("px", "") }}px
{{ df.print_width.replace("px", "") }}px
{%- endif -%}
{%- elif df.fieldtype in ("Int", "Check", "Float", "Currency") -%}{{ 80 }}px
{%- else -%}{{ 150 }}px{% endif -%}