Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed id attribute generation in the admin docs page. Patch f…

…rom simeon.

Fixed #3695. Thanks.

Backport of r13728 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dc00873da09e49afb3a3d31248e61175f4b4fea4 1 parent ff0cb11
Malcolm Tredinnick authored
4  django/contrib/admindocs/templates/admin_doc/template_filter_index.html
@@ -15,7 +15,7 @@
15 15
     <h2>{% firstof library.grouper "Built-in filters" %}</h2>
16 16
     {% if library.grouper %}<p class="small quiet">To use these filters, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the filter.</p><hr />{% endif %}
17 17
     {% for filter in library.list|dictsort:"name" %}
18  
-    <h3 id="{{ filter.name }}">{{ filter.name }}</h3>
  18
+    <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
19 19
     <p>{{ filter.title }}</p>
20 20
     <p>{{ filter.body }}</p>
21 21
     {% if not forloop.last %}<hr />{% endif %}
@@ -36,7 +36,7 @@ <h3 id="{{ filter.name }}">{{ filter.name }}</h3>
36 36
     <h2>{% firstof library.grouper "Built-in filters" %}</h2>
37 37
     <ul>
38 38
     {% for filter in library.list|dictsort:"name" %}
39  
-        <li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>
  39
+        <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
40 40
     {% endfor %}
41 41
     </ul>
42 42
 </div>
4  django/contrib/admindocs/templates/admin_doc/template_tag_index.html
@@ -15,7 +15,7 @@
15 15
     <h2>{% firstof library.grouper "Built-in tags" %}</h2>
16 16
     {% if library.grouper %}<p class="small quiet">To use these tags, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the tag.</p><hr />{% endif %}
17 17
     {% for tag in library.list|dictsort:"name" %}
18  
-    <h3 id="{{ tag.name }}">{{ tag.name }}</h3>
  18
+    <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
19 19
     <h4>{{ tag.title }}</h4>
20 20
     <p>{{ tag.body }}</p>
21 21
     {% if not forloop.last %}<hr />{% endif %}
@@ -36,7 +36,7 @@ <h3 id="{{ tag.name }}">{{ tag.name }}</h3>
36 36
     <h2>{% firstof library.grouper "Built-in tags" %}</h2>
37 37
     <ul>
38 38
     {% for tag in library.list|dictsort:"name" %}
39  
-        <li><a href="#{{ tag.name }}">{{ tag.name }}</a></li>
  39
+        <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
40 40
     {% endfor %}
41 41
     </ul>
42 42
 </div>

0 notes on commit dc00873

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