python - Truncatewords by percentage of total words count -


How can the text area be reduced according to the words based on the counting of words?

For example {{post.content | truncatewords_by_percents: "20%"}}

Custom template tag built-in template tags only characters or See the documentation that allows transcription by words.

Comments