mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Used model's Options.label/label_lower where applicable.
This commit is contained in:
@@ -307,7 +307,7 @@ class ModelDetailView(BaseAdminDocsView):
|
||||
})
|
||||
return super().get_context_data(**{
|
||||
**kwargs,
|
||||
'name': '%s.%s' % (opts.app_label, opts.object_name),
|
||||
'name': opts.label,
|
||||
'summary': title,
|
||||
'description': body,
|
||||
'fields': fields,
|
||||
|
||||
Reference in New Issue
Block a user