My view give me a list or reports and the current user
In my template I wanted to do :
{% for report in reports %}
...
{% if current_user.can_edit_report(report) == True %}
...
{% endif %}
...
{% endfor %}
But that throw mi a error
Could not parse the remainder: '(report)' from 'current_user.can_edit_report(report)'
Because Django seems not to be able to call a method with parameter in a Template.
So I must do it in the View...
Do you have a idea how to do that properly?
Thanks