1
0
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:
Mariusz Felisiak
2020-01-29 12:09:20 +01:00
committed by GitHub
parent a45c8d7ad0
commit b7a3a6c9ef
5 changed files with 26 additions and 29 deletions

View File

@@ -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,