I am developing a website in django and I have encountered a problem.
I am using an 'include' template tag and I am trying to pass an object into the tag. But whenever I pass it in, it is passing in the dunder str method of the object.
{% include 'function/comment' object=answer %}
'answer' is the object I want to pass in (fyi it is a model object)
Instead of passing the answer object it is passing the dunder str method.
Is there a way to solve this?
Thanks in advance.