Replaced HAS_SPATIAL_DB by testing database feature

Refs #22632. This should be the base for using more database
features to exclude specific backends in GIS tests.
Thanks Tim Graham for the review.
Fixed broken tests on Oracle after 5853c87a458f62ebd62d7809168355610de2570c.

Oracle doesn't have a `BEGIN` statement so the test would
fail.

Refs #23303
Fixed #21801 -- Documented SingleObjectMixin.get_context_data() requires the object attribute.
Removed unused imports.
Fixed #23316 -- Added datetime.time serialization in migrations.
Fixed #22996 -- Prevented crash with unencoded query string

Thanks Jorge Carleitao for the report and Aymeric Augustin, Tim Graham
for the reviews.
Removed unnecessary code-block directives.
Fixed #10190 -- Made HttpResponse charset customizable.

Thanks to Simon Charette, Aymeric Augustin, and Tim Graham
for reviews and contributions.
Added sphinx extension to ease generation of ticket links.
Fixed #23315: Operational dependency fail with mixed create/add
Fixed typo in 1.7 release notes
Added Chinese language aliases in tx client config

Transifex doesn't have zh_Hans/zh_Hant locales.
Forward port of c586fcd4eade5 from stable/1.7.x
Fetched translations from Transifex

Forward port of 49280a73ea5 from stable/1.7.x
Fixed migrations tests added in refs #23315.
Fixed flake8 warnings.
Added release note stubs for 1.5.9 and 1.4.14.
Prevented reverse() from generating URLs pointing to other hosts.

This is a security fix. Disclosure following shortly.
Fixed #23157 -- Removed O(n) algorithm when uploading duplicate file names.

This is a security fix. Disclosure following shortly.
Fixed #23066 -- Modified RemoteUserMiddleware to logout on REMOTE_USER change.

This is a security fix. Disclosure following shortly.
Prevented data leakage in contrib.admin via query string manipulation.

This is a security fix. Disclosure following shortly.