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\'
To avoid throw a exception while "p" or "p.User" is None, you can use:
{{ (p and p.User and p.User['first_name']) or "default_value" }}