https://catalogcasiokeyboardlk.blogspot.com/2024/02/using-getattr-in-jinja2-gives-me-error.html