truncate templat tag django
{% load humanize %}
{{ my_text|truncatechars:30 }} - Loads the humanize template tags to be used in the template.
{{ my_text|truncatechars:30 }} - Truncates the value of "my_text" to a certain number of characters.
I hope this helps!