Code

Ticket #2505: admin_doc_model_detail.diff

File admin_doc_model_detail.diff, 686 bytes (added by dummy@…, 8 years ago)

enable the verbose field of models in admin_doc

Line 
1Index: django/contrib/admin/templates/admin_doc/model_detail.html
2===================================================================
3--- django/contrib/admin/templates/admin_doc/model_detail.html  (Revision 3545)
4+++ django/contrib/admin/templates/admin_doc/model_detail.html  (Arbeitskopie)
5@@ -35,7 +35,7 @@
6 <tr>
7     <td>{{ field.name }}</td>
8     <td>{{ field.data_type }}</td>
9-    <td>{% if field.verbose %}{{ field.verbose|escape }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %}</td>
10+    <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %}</td>
11 </tr>
12 {% endfor %}
13 </tbody>