Thanks for this interesting approach.
Stephan
Am Freitag, 19. Februar 2010 00:34:54 schrieb Matías Costa:
> In general no, but in this simple usage it is posible. Writing from
> memory, the names will be wrong:
>
> class Info(models.Model)
> ...fields
>
> def article_context_rendered(
In general no, but in this simple usage it is posible. Writing from memory,
the names will be wrong:
class Info(models.Model)
...fields
def article_context_rendered(self):
t = templates.from_string(self.article_context)
return t.render({'info':self};
And in the template
2 matches
Mail list logo