In my python class I defined a method:
def get_data(self):
var = "I am a variable"
return var
In the view I try to call it via:
t-esc="o.get_data()"
I see numerous posts that it should work like this, only it doesn't, I get:
Cannot read properties of undefined (reading 'get_data')
What could be the reason? Should this work?