I would like my django model to offer a render method that could be called from django template.
I have tried to achieve this with template nodes with following code.