Documented next/previous_week. Refs #10890.
Fixed #18354 -- Performance issue in CBV.

Prevented repeating a query twice when the model isn't ordered by
-date_field (in Meta), allow_empty is False and pagination isn't
enabled.
Regenerated the minified versions of the admin actions and admin inlines JavaScript files forgotten in 04785d2 and f92c7c5 (and previous).
Fixed #18115 - added warning about overlaid install.

Setup.py now warns if it detects that Django is being installed over top
of a previous installation that was never removed. This should only
happen when installing with ``python setup.py install``, as pip
automatically uninstalls before installing a new version and
easy_install installs as an egg directory.

Also generally updated the installation doc.
Fixed #18113 -- Corrected get_template_names docstrings.

Thanks Keryn Knight for the report.
Replaced print statement by print function in new install instructions.
Fixed #18167 -- Gave advice on checking Django version in the tutorial.

Thanks smuss for the initial patch.
Fixed #18244 -- Documented that formset.has_changed is a 1.4 addition.
Fixed #18304 -- Optimized save() when update_can_self_select=False

Databases with update_can_self_select = False (MySQL for example)
generated non-necessary queries when saving a multitable inherited
model, and when the save resulted in update.
Replaced 'next' testing by collections.Iterator testing.

The new construct is also Python 3 compatible (where 'next' has
been renamed to '__next__').
Fixed #18317 -- Removed db specific raw SQL function from tests

A test in model_fields used LEN() in raw SQL. This function is not
available on some 3rd party backends. I removed this function and
ensured that the test works correctly (breaks pre e9bbdb39de) with
the change.
Fixed #18318 -- Changed some tests to be 3rd party DB friendly

Thanks to manfre for report and patch.
Fixed #18319 -- Added 'supports_sequence_reset' DB feature

Added a new feature to allow 3rd party backends to skip tests which
test sequence resetting.

Thanks to manfre for report and patch.
Replaced types.NoneType occurrences

In Python 3, types.NoneType is no more available.
Modernized contrib.gis layermapping tests.

In particular, make tests independent of each other.
Fixed #18367 -- Allowed LayerMapping to store strings in TextField.

Thanks geoffhing@gmail.com for the report.
Fixed #18353 -- Inconsistency in date-based CBVs.
Fixed #18177 -- Cached known related instances.

This was recently fixed for one-to-one relations; this patch adds
support for foreign keys. Thanks kaiser.yann for the report and
the initial version of the patch.
Stopped converting match dict keys to bytestrings when resolving URLs.

Test suite is passing, but if any regression would be detected,
we might replace smart_str by force_unicode.
Fixed qs.order_by() join promotion for already existing joins

When order_by causes new joins to be added to the query, the joins must
be LEFT OUTER joins for nullable relations, otherwise the order_by
could cause the results to be altered. This commit fixes the logic to
only promote new joins, previously all joins in the order_by lookup
path were promoted.

Thanks to Bruno Desthuilliers for spotting this corner case.