mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
773d91ead2
commit
543984f462
|
@ -772,12 +772,17 @@ is a list of people represented by dictionaries with ``first_name``,
|
||||||
like this:
|
like this:
|
||||||
|
|
||||||
* Male:
|
* Male:
|
||||||
|
|
||||||
* George Bush
|
* George Bush
|
||||||
* Bill Clinton
|
* Bill Clinton
|
||||||
|
|
||||||
* Female:
|
* Female:
|
||||||
|
|
||||||
* Margaret Thatcher
|
* Margaret Thatcher
|
||||||
* Condoleezza Rice
|
* Condoleezza Rice
|
||||||
|
|
||||||
* Unknown:
|
* Unknown:
|
||||||
|
|
||||||
* Pat Smith
|
* Pat Smith
|
||||||
|
|
||||||
You can use the ``{% regroup %}`` tag to group the list of people by gender.
|
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:
|
above would result in the following output:
|
||||||
|
|
||||||
* Male:
|
* Male:
|
||||||
|
|
||||||
* Bill Clinton
|
* Bill Clinton
|
||||||
|
|
||||||
* Unknown:
|
* Unknown:
|
||||||
|
|
||||||
* Pat Smith
|
* Pat Smith
|
||||||
|
|
||||||
* Female:
|
* Female:
|
||||||
|
|
||||||
* Margaret Thatcher
|
* Margaret Thatcher
|
||||||
|
|
||||||
* Male:
|
* Male:
|
||||||
|
|
||||||
* George Bush
|
* George Bush
|
||||||
|
|
||||||
* Female:
|
* Female:
|
||||||
|
|
||||||
* Condoleezza Rice
|
* Condoleezza Rice
|
||||||
|
|
||||||
The easiest solution to this gotcha is to make sure in your view code that the
|
The easiest solution to this gotcha is to make sure in your view code that the
|
||||||
|
|
Loading…
Reference in New Issue