Fixed #23862 -- Made sure m2m fields through to_field correcly work.