Google News
logo
Django - Quiz(MCQ)
Which filter will truncate the string, so you will see only the first 80 words?
A)
{{string|truncatewords:80}}
B)
{{string|truncate}}
C)
{{string|truncate:80}}
D)
{{string|truncatewords}}

Correct Answer :   {{string|truncatewords:80}}


Explanation : {{string|truncatewords:80}} : This filter will truncate the string, so you will see only the first 80 words.

Advertisement