Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Exposed model __doc__ in admin docs views which fixes #1408. Thanks, …

…poelzi

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b830fa7e7896bc7e13254740b12ec5ab7eed82cf 1 parent eeb848b
Jacob Kaplan-Moss authored February 27, 2006
4  django/contrib/admin/templates/admin_doc/model_detail.html
@@ -16,6 +16,10 @@
16 16
 <div id="content-main">
17 17
 <h1>{{ summary }}</h1>
18 18
 
  19
+{% if description %}
  20
+  <p>{% filter escape|linebreaksbr %}{% trans description %}{% endfilter %}</p>
  21
+{% endif %}
  22
+
19 23
 <div class="module">
20 24
 <table class="model">
21 25
 <thead>
1  django/contrib/admin/views/doc.py
@@ -185,6 +185,7 @@ def model_detail(request, model):
185 185
     return render_to_response('admin_doc/model_detail', {
186 186
         'name': '%s.%s' % (opts.app_label, opts.module_name),
187 187
         'summary': "Fields on %s objects" % opts.verbose_name,
  188
+        'description' : model.__doc__,
188 189
         'fields': fields,
189 190
     }, context_instance=DjangoContext(request))
190 191
 model_detail = staff_member_required(model_detail)

0 notes on commit b830fa7

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