How to make a variable in jijna2 default to \"\" if object is None instead of doing something like this?
{% if p %} {{ p.User[\'first_name\'
As addition to other answers, one can write something else if variable is None like this:
{{ variable or '' }}