Thanks bhp for the report.
The DTL will perform dict lookup before method lookup, which yields an unexpected result for defaultdicts.
Thanks poirier for the report.
This should prevent a race condition if running collectstatic is canceled or its cache is accessed from other processes, leaving the cache in a corrupt state.
Fixed #18248 -- proxy models were added to included_inherited_models in sql.query.Query. The variable is meant to be used for multitable inheritance only. This mistake caused problems in situations where proxy model's query was reused.
The total_ordering in Python versions prior to 2.7.2 is buggy, and this caused infinite recursion for Field comparisons on those versions. Use the borrowed total_ordering for all Python versions prior to 2.7.2. The buggy total_ordering was introduced in commit 5cbfb48
In Python 3, itertools.izip is not available any more (behaviour integrated in standard zip).
Ignoring __pycache__ directories fixes #17393 and prepare testing with Python 3.
Thanks schnippi for the report.
Thanks to Florian Apolloner for suggesting the patch.