How to find that the content is truncated?

后端 未结 4 1214
误落风尘
误落风尘 2021-01-02 05:05

I\'m trying to build a blog app and the problem is when I use tag \'truncatewords_html\' in my template to truncate posts longer than specified number of words, I need to li

4条回答
  •  一生所求
    2021-01-02 05:15

    Check out http://code.djangoproject.com/ticket/6799

    This patch provides a method to replace the default elipses for truncated text.

提交回复
热议问题