Added tests for MTI in RunPython.
Fixed #21893 -- ModelState didn't account for MTI parents inherited from abstract models.
Merge pull request #2396 from loic/ticket21893

Fixed #21893 -- ModelState didn't account for MTI parents inherited from abstract models.