[Answer]-Django Truncate, return false if no truncation occurs?

1👍

Compare the result of truncation with the original text:

return self.description != Truncator(self.description).words(5, html=True,
                                                             truncate=" ...")

Leave a comment