Fixed #11026, a small typo in the regroup template tag docstring. Thanks,
mitsuhiko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ae7d9bfad2
commit
9e7388f885
|
@ -980,7 +980,7 @@ def regroup(parser, token):
|
||||||
that ``grouper``. In this case, ``grouper`` would be ``Male``, ``Female``
|
that ``grouper``. In this case, ``grouper`` would be ``Male``, ``Female``
|
||||||
and ``Unknown``, and ``list`` is the list of people with those genders.
|
and ``Unknown``, and ``list`` is the list of people with those genders.
|
||||||
|
|
||||||
Note that `{% regroup %}`` does not work when the list to be grouped is not
|
Note that ``{% regroup %}`` does not work when the list to be grouped is not
|
||||||
sorted by the key you are grouping by! This means that if your list of
|
sorted by the key you are grouping by! This means that if your list of
|
||||||
people was not sorted by gender, you'd need to make sure it is sorted
|
people was not sorted by gender, you'd need to make sure it is sorted
|
||||||
before using it, i.e.::
|
before using it, i.e.::
|
||||||
|
|
Loading…
Reference in New Issue