Fixed #23604 -- Allowed related m2m fields to be references in the admin.