From 3b774583711e39dae7a5cfde314288f8019f59c6 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 14 Jul 2011 13:47:10 +0000 Subject: Fixed #5025 -- Add a "truncatechars" template filter. Many thanks to Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16542 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/releases/1.4.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/releases') diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 55d845305c..43c9ae25c5 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -145,6 +145,14 @@ A new helper function, ``template.Library`` to ease the creation of template tags that store some data in a specified context variable. +``truncatechars`` template filter +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Added a filter which truncates a string to be no longer than the specified +number of characters. Truncated strings end with a translatable ellipsis +sequence ("..."). See the :tfilter:`truncatechars docs ` for +more details. + CSRF improvements ~~~~~~~~~~~~~~~~~ -- cgit v1.3