[1.7.x] Fixed #23088 -- Used `six` `range` type in `Paginator.page_range`.

Backport of 6508db2ff9 from master
[1.7.x] Improved docs for GEOSGeometry.simplify()

Backport of aa8bc7fa7d from master
[1.7.x] Fixed #22827 -- clarified what each cache middleware does.

Thanks Keryn Knight for the report.

Backport of f9b7a0383c from master
[1.7.x] Fixed #23071 -- Use last migration's name in dependency to other app

Changed the autodetector to lookup the name of the other app's last
migration in the graph and use that as dependency instead of using
__latest__.
[1.7.x] Mark initial_data as deprecated separately from syncdb. Refs #23077.

Conflicts:
	docs/internals/deprecation.txt
[1.7.x] Fixed #23093: soft application detection for swapped models
[1.7.x] Restore support for reading __latest__ for compatability
[1.7.x] Fixed #23085: Better error message for PostGIS 1.5/bad custom fields
[1.7.x] Fixed #23083 -- Fixed runserver reloading when deleting a file.

Thanks Collin Anderson for the report and hirokiky for the fix.

Backport of b8cb5ba708 from master
[1.7.x] Fixed bad usage of rstrip() that caused test failure.

If the temporary file name contained a p or y as its last
characters, it would be stripped. refs #23083.

Backport of 57d2b3f2a7 from master