[Answered ]-Django template tag doesnt work

2👍

✅

{{ child.level|mod:'10' }}

You need to remove the space before the argument you pass and pass the argument as string. Django does not allow spaces in template filters.

Leave a comment