Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 543984f462d1c031163cabfdfceb0809c65cd146 1 parent 773d91e
Luke Plant authored November 17, 2011

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  docs/ref/templates/builtins.txt
14  docs/ref/templates/builtins.txt
@@ -772,12 +772,17 @@ is a list of people represented by dictionaries with ``first_name``,
772 772
 like this:
773 773
 
774 774
 * Male:
  775
+
775 776
   * George Bush
776 777
   * Bill Clinton
  778
+
777 779
 * Female:
  780
+
778 781
   * Margaret Thatcher
779 782
   * Condoleezza Rice
  783
+
780 784
 * Unknown:
  785
+
781 786
   * Pat Smith
782 787
 
783 788
 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
831 836
 above would result in the following output:
832 837
 
833 838
 * Male:
  839
+
834 840
   * Bill Clinton
  841
+
835 842
 * Unknown:
  843
+
836 844
   * Pat Smith
  845
+
837 846
 * Female:
  847
+
838 848
   * Margaret Thatcher
  849
+
839 850
 * Male:
  851
+
840 852
   * George Bush
  853
+
841 854
 * Female:
  855
+
842 856
   * Condoleezza Rice
843 857
 
844 858
 The easiest solution to this gotcha is to make sure in your view code that the

0 notes on commit 543984f

Please sign in to comment.
Something went wrong with that request. Please try again.