Made a few small tweaks to admin doc pages.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ce6f058bbb
commit
20416b2972
|
@ -5,6 +5,7 @@
|
|||
{{ block.super }}
|
||||
<style type="text/css">
|
||||
.module table { width:100%; }
|
||||
.module table p { padding: 0; margin: 0; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -207,10 +207,12 @@ def model_detail(request, app_label, model_name):
|
|||
accessor = rel.get_accessor_name()
|
||||
fields.append({
|
||||
'name' : "%s.all" % accessor,
|
||||
'data_type' : 'List',
|
||||
'verbose' : utils.parse_rst("all " + verbose , 'model', 'model:' + opts.module_name),
|
||||
})
|
||||
fields.append({
|
||||
'name' : "%s.count" % accessor,
|
||||
'data_type' : 'Integer',
|
||||
'verbose' : utils.parse_rst("number of " + verbose , 'model', 'model:' + opts.module_name),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue