During the rendering of a template that uses the Airflow variable prev_execution_date_success, like this:
rendered_and_formatted = "{{ prev_execution_date_success.strftime('%Y%m%d') }}"
... I get the error:
jinja2.exceptions.UndefinedError: 'Proxy object' has no attribute 'strftime'