[Django]-Jinja Invalid Filter, filter is built in

10👍

You are quite simply not using Jinja. You are using the Django template language.

Django’s built-in filters are documented here; the filter that truncate strings is called truncatechars. You also need to use Django syntax to pass the parameters to the filter.

{{reply.content|truncatechars:14}}

Leave a comment