Author: jacob Date: 2009-05-07 08:46:16 -0500 (Thu, 07 May 2009) New Revision: 10687
Modified: django/trunk/django/template/defaulttags.py Log: Fixed #11026, a small typo in the regroup template tag docstring. Thanks, mitsuhiko. Modified: django/trunk/django/template/defaulttags.py =================================================================== --- django/trunk/django/template/defaulttags.py 2009-05-07 13:10:59 UTC (rev 10686) +++ django/trunk/django/template/defaulttags.py 2009-05-07 13:46:16 UTC (rev 10687) @@ -980,7 +980,7 @@ 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.:: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---