I have a model with a method, like:

class Model ......
 # class body

 def is_maintainer(user):
   #method body

Is there any way to invoke this method from a template ?

{% if model.is_maintainer request.user %} # this doesn't work

or should I write my own tag ?

Kind Regards

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to