New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.9.1 incompatibility with flask admin #642
Comments
Looks like a regression. Until it's fixed I'd recommend requiring |
We are now. Thanks. |
Would it be possible to get a minimal repro case for this? |
Found a minimal repo. Interesting that this worked before: {% macro x(caller=none) -%}
[{% if caller %}{{ caller() }}{% endif %}]
{%- endmacro %}
{{ x() }}
{% call x() %}aha!{% endcall %} Going to investigate what this did. |
isn't that |
@ThiefMaster it's undefined and yes. I assume the correct behavior will be to just silently ignore |
Eg. Could you do |
sounds like something that should at least trigger a warning |
So you could define a default in the past but only if caller was the last argument I think. If you did |
So turns out this is common. https://github.com/search?q=%22%7B%25+macro+%22+%22caller%3Dnone%22&type=Code&utf8=%E2%9C%93 |
Not sure if that change is good enough to cover all cases but this is a change I am willing to make. This at least gives it a clear behavior now. |
That was quick! Thanks, will verify our own code whether we do something "unexpected". |
We have jinja2 in Airflow and it throws an error that seems tied to our usage of flask-admin:
The text was updated successfully, but these errors were encountered: