Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

magic-removal: Changed breadcrumb on admin model docs page to use obj…

…ect_name, not verbose_name

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 107f097a987fce5ad9bbd8670ba3e16af2b18358 1 parent b4a454f
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/views/doc.py
View
4 django/contrib/admin/views/doc.py
@@ -192,8 +192,8 @@ def model_detail(request, app_label, model_name):
})
return render_to_response('admin_doc/model_detail', {
- 'name': '%s.%s' % (opts.app_label, opts.module_name),
- 'summary': "Fields on %s objects" % opts.verbose_name,
+ 'name': '%s.%s' % (opts.app_label, opts.object_name),
+ 'summary': "Fields on %s objects" % opts.object_name,
'fields': fields,
}, context_instance=RequestContext(request))
model_detail = staff_member_required(model_detail)
Please sign in to comment.
Something went wrong with that request. Please try again.