KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to pass a parameter to a function inside of a django template tag? Defined class and function: class Bar(): def foo(self, value): # do something here return True in template: {% if my_bar.foo:my_value %}Yes{% endif %} Currently I'm getting a TemplateSyntaxError "Could not parse the remainder"
Tags (comma-separated)
Save Edits
Cancel