On 12/2/06, Kai Kuehne <[EMAIL PROTECTED]> wrote: > Is it possible to call functions of the model out of the template? > Sorry, didn't find it in the docs.
It is possible to call methods which take no arguments, by doing {{ model.method }} Note that this has 'method', not 'method()' -- parentheses are not used, and it is not possible to pass arguments to the method. This is done because the template language is not meant to be a full programming language; if you need to call something with arguments, you will need to do it in your view and pass the result data to the template, or write a custom template tag which returns the data you want. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---