No filter named ‘linebreaks’

Solution for No filter named ‘linebreaks’
is Given Below:

I am using Jinja2 and Django’s template system.

When I try to use linebreaks or linebreksbr template filter, I get an Exception:

jinja2.exceptions.TemplateAssertionError: No filter named 'linebreaksbr'.

Example:

<div>
   {{ object_instance.text_content|linebreaksbr }}
</div>

Other default filters like capfirst are working as they should.