On Sat, 2008-11-15 at 12:16 -0800, [EMAIL PROTECTED] wrote:
> Hi,
>
> From the django documentation, it looks like it is not possible to
> pass arguments to methods from the template HTML code.
>
> For example:
>
> class MyModel(Model):
> def foo(self):
> return 'This works'
>
> can be
Hi,
>From the django documentation, it looks like it is not possible to
pass arguments to methods from the template HTML code.
For example:
class MyModel(Model):
def foo(self):
return 'This works'
can be accessed by: {{ mymodel.foo }} in an HTML template.
What I am trying to do,
2 matches
Mail list logo