django1/django
Brad Walker 54d3dcbc51 Removed reduce() usage in makemigrations; refs #23796.
A lambda all_items_equal() replaced a reduce() that was broken for potential
3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't
generically check equality of all items in a sequence:

>>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3))
False

The code now counts the number of common ancestors to calculate slice offsets
for the branches. Each branch shares the same number of common ancestors.

The common_ancestor for loop statement had incomplete branch coverage.
2014-11-20 14:33:30 -05:00
..
apps Improved warning message when reloading models. Refs #23621. 2014-10-23 01:46:04 +07:00
bin Started attackign the next flake8 violation 2013-10-31 08:42:28 -07:00
conf Normalized check that ALLOWED_INCLUDE_ROOTS is a tuple. 2014-11-17 22:49:01 +01:00
contrib Fixed #23873 -- Improved GIS error message when GEOS is not installed. 2014-11-19 19:23:13 -07:00
core Removed reduce() usage in makemigrations; refs #23796. 2014-11-20 14:33:30 -05:00
db Reduced reduce() usage; refs #23796. 2014-11-20 14:31:14 -05:00
dispatch Fixed #16245 -- Included traceback in send_robust()'s response 2014-05-16 18:41:40 -04:00
forms Fixed #23795 -- Fixed a regression in custom form fields 2014-11-12 22:38:18 +01:00
http Fixed #12098 -- Simplified HttpRequest.__repr__(). 2014-11-20 08:45:11 -05:00
middleware Fixed #23531 -- Added CommonMiddleware.response_redirect_class. 2014-11-04 17:56:57 -05:00
template Simplified caching of template context processors. 2014-11-19 21:35:39 +01:00
templatetags Fix many many typos in comments throughout the codebase 2014-04-26 10:18:45 -07:00
test Simplified caching of template context processors. 2014-11-19 21:35:39 +01:00
utils Simplified caching of supported languages. 2014-11-19 21:35:40 +01:00
views Simplified caching of the default exception reporter filter. 2014-11-19 21:35:40 +01:00
__init__.py Fixed #23442 -- Added django.__version__ per PEP 396. 2014-09-09 14:27:05 -04:00
shortcuts.py Moved relative URL handling added in refs #21177 to a better place. 2014-02-15 07:54:35 -05:00