Ticket #1408: django_admin_modules_description2.diff
File django_admin_modules_description2.diff, 1.1 KB (added by , 19 years ago) |
---|
-
contrib/admin/views/doc.py
191 191 return render_to_response('admin_doc/model_detail', { 192 192 'name': '%s.%s' % (opts.app_label, opts.object_name), 193 193 'summary': "Fields on %s objects" % opts.object_name, 194 'description': model.__doc__, 194 195 'fields': fields, 195 196 }, context_instance=RequestContext(request)) 196 197 model_detail = staff_member_required(model_detail) -
contrib/admin/templates/admin_doc/model_detail.html
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>