diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-11-17 22:00:08 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2011-11-17 22:00:08 +0000 |
| commit | 543984f462d1c031163cabfdfceb0809c65cd146 (patch) | |
| tree | e47c1f507a7cc7ca5d5c2ecdb51b6fe41dfaa7a9 /docs | |
| parent | 773d91ead2f47c3329c0c2d3745339e81d06eb4e (diff) | |
Fixed some ReST errors in 'regroup' template tag docs
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index cddc9dd0ed..7b305746ab 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -772,12 +772,17 @@ is a list of people represented by dictionaries with ``first_name``, like this: * Male: + * George Bush * Bill Clinton + * Female: + * Margaret Thatcher * Condoleezza Rice + * Unknown: + * Pat Smith You can use the ``{% regroup %}`` tag to group the list of people by gender. @@ -831,14 +836,23 @@ With this input for ``people``, the example ``{% regroup %}`` template code above would result in the following output: * Male: + * Bill Clinton + * Unknown: + * Pat Smith + * Female: + * Margaret Thatcher + * Male: + * George Bush + * Female: + * Condoleezza Rice The easiest solution to this gotcha is to make sure in your view code that the |
