Add a mandatory jinja2 filter for use in templates.
Merge pull request #3375 from jhoekx/mandatory-filter

Add a mandatory jinja2 filter for use in templates.