From 9b724aea20047f1ad3c8c644f3b79771860a09dd Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 7 May 2009 13:48:35 +0000 Subject: [PATCH] [1.0.X] Fixed #11026, a small typo in the regroup template tag docstring. Thanks, mitsuhiko. Backport of [10687] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10688 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/defaulttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 8d623005fd..0b23d4dc6e 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -946,7 +946,7 @@ def regroup(parser, token): that ``grouper``. In this case, ``grouper`` would be ``Male``, ``Female`` 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 people was not sorted by gender, you'd need to make sure it is sorted before using it, i.e.::