check in jinja2 template if form has default value code example
Example: jinja check if variable is none
{% if p is none %}
<!--None-->
{% else %}
<!--Not None-->
{%endif %}
{% if p is none %}
<!--None-->
{% else %}
<!--Not None-->
{%endif %}