Skip to content

Commit

Permalink
Fixed some ReST errors in 'regroup' template tag docs
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
spookylukey committed Nov 17, 2011
1 parent 773d91e commit 543984f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/ref/templates/builtins.txt
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 543984f

Please sign in to comment.