Fix soft-apply detection of migrations with dependencies
Fixed #21824 -- Added reference to LTS in docs/internals/security.txt
Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.

Thanks tragiclifestories for the report.