Ticket #11357: admindocs-m2m.diff

File admindocs-m2m.diff, 641 bytes (added by James Bennett, 15 years ago)
  • django/contrib/admindocs/views.py

     
    233233            })
    234234
    235235    # Gather related objects
    236     for rel in opts.get_all_related_objects():
     236    for rel in opts.get_all_related_objects() + opts.get_all_related_many_to_many_objects():
    237237        verbose = _("related `%(app_label)s.%(object_name)s` objects") % {'app_label': rel.opts.app_label, 'object_name': rel.opts.object_name}
    238238        accessor = rel.get_accessor_name()
    239239        fields.append({
Back to Top