mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #12663 -- Formalized the Model._meta API for retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
This commit is contained in:
committed by
Tim Graham
parent
749d23251b
commit
fb48eb0581
@@ -262,7 +262,7 @@ class ModelDetailView(BaseAdminDocsView):
|
||||
})
|
||||
|
||||
# Gather related objects
|
||||
for rel in opts.get_all_related_objects() + opts.get_all_related_many_to_many_objects():
|
||||
for rel in opts.related_objects:
|
||||
verbose = _("related `%(app_label)s.%(object_name)s` objects") % {
|
||||
'app_label': rel.opts.app_label,
|
||||
'object_name': rel.opts.object_name,
|
||||
|
||||
Reference in New Issue
Block a user