1 2 3 4
@property def short_text(self): from django.utils.text import truncate_html_words return truncate_html_words(self.html, 20)