[1.7.x] Revert "Making SQL management commands migration aware."

This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.

Backport of 83e7555ffee305c1ea1e0655fd1f0aa35269533f from master.
[1.7.x] Fixed #21938 -- Moved documentation for error views to reference guide.

Backport of 5b98ba08e2cc8760525fc1e0a2c917c063b0d5e2 from master
[1.7.x] Fixed syntax error in ogrinspect.py management command.

Backport of f384b638e2 from master
[1.7.x] Fixed #22659 -- Prevent model states from sharing field instances.

Thanks to Trac alias tbartelmess for the report and the test project.

Backport of 7a38f88922 from master
[1.7.x] Fixed #22711 -- Adjusted ordering checks to allow implicit relation fields.

refs #19195.

Backport of d04e730224 from master
[1.7.x] Fixed #22744 -- Fixed sqlite3 get_relations introspection with views

Thanks Tim Graham for the report and Simon Charette for the review.
Backport of 5a504a5311 from master.
[1.7.x] Revert "Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with choices"

This reverts commit 9d1987d7679165ad3a7c2b713a8a488cc1421905.

Backport of 5046c110cf from master
[1.7.x] Removed an unused import

Backport of a31d7c48b0 from master
[1.7.x] Fixed #22690 -- Added a check for proxy models containing fields.

Removed the FieldError raised by ModelBase.__new__ in this case.

Backport of ce993efda8 from master
[1.7.x] Fixed #22748 -- Corrected post_migrate usage example.

Thanks Rudolph for the report.

Backport of a00efa30d6 from master
[1.7.x] Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.

Backport of e020894470 from master
[1.7.x] Removed erroneous trailing comma in OLMapWidget.js.

Backport of c5226eb72a from master
[1.7.x] Updated current state of MySQL Connector/Python.

Backport of 7be646425f from master
[1.7.x] Fixed #22681 -- Made TarArchive recognize leading directories properly.

Backport of 083d285b82 from master
[1.7.x] Fixed #22747 -- Add backwards compatibility tip for new behavior of formset.save(commit=False).

Thanks django at patjack.co.uk.

Backport of 2f7a7842ba from master
[1.7.x] Fixed #22710 -- Amended aggregation note for empty QuerySets

Thanks smeaton for report and Joël Rochat for spell check

Backport of 7f27cca5c5 from master
Reordered setUp code in prefetch_related tests.

This allows these tests to run on databases that reject duplicate NULL
values in unique fields e.g. SQL Server.
Avoided using BinaryField unecessarily in tests.

Several database backends struggle with binary data. This change
minimizes the risk of unrelated tests failures when binary fields
trigger errors.
[1.7.x] Added a flag for the ability to introspect nullable fields.

Previously this was conflated with another Oracle-specific behavior.

Backport of a03d38d from master.
[1.7.x] Fix missing highlighting in some code examples

Backport of 84cafc2b35 from master