Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved docs/templates.txt to add example for slice filter. Thanks f…

…or the suggestion, Graham Higgins

git-svn-id: http://code.djangoproject.com/svn/django/trunk@681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2e8e256fe84ba9ea46eb75ee85f45af5bd296b2a 1 parent 109a915
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  docs/templates.txt
View
2  docs/templates.txt
@@ -676,6 +676,8 @@ Built-in filter reference
http://diveintopython.org/native_data_types/lists.html#odbchelper.list.slice
for an introduction.
+ Example: ``{{ some_list|slice:":2" }}``
+
``slugify``
Converts to lowercase, removes non-word characters (alphanumerics and
underscores) and converts spaces to hyphens. Also strips leading and
Please sign in to comment.
Something went wrong with that request. Please try again.