django1/django
Michael Schwarz 72d541b61c Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments.
The fallback logic which allows non-UTF-8 encoded files to be passed to
attach_file() even when a `text/*` mime type has been specified is
moved to attach(). Both functions now fall back to a content type of
`application/octet-stream`.

A side effect is that a file's content is decoded in memory instead of
opening it in text mode and reading it into a string.

Some mimetype-related logic in _create_attachment() has become
obsolete as the code moved from attach_file() to attach() already
handles this.
2016-08-12 16:35:09 -04:00
..
apps Fixed #26616 -- Improved error message when AppConfig.name is invalid. 2016-06-02 10:37:00 -04:00
bin Removed bin/unique-messages.py 2015-02-06 08:47:38 -05:00
conf Fixed #26947 -- Added an option to enable the HSTS header preload directive. 2016-08-10 20:23:54 -04:00
contrib Fixed #26919 -- Added the action form's media in the changelist view. 2016-08-11 19:35:31 -04:00
core Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments. 2016-08-12 16:35:09 -04:00
db Fixed #20888 -- Added support for column order in class-based indexes. 2016-08-12 15:52:16 -04:00
dispatch Fixed #13080 -- Corrected accepted values of sender parameter in Signal.connect() docstring. 2016-05-30 08:17:42 -04:00
forms Made BoundField.initial use cached_property. 2016-08-12 12:43:24 -07:00
http Fixed #27046 -- Supported IPv6-formatted IPv4 addresses in host validation. 2016-08-11 13:54:39 -04:00
middleware Fixed #26947 -- Added an option to enable the HSTS header preload directive. 2016-08-10 20:23:54 -04:00
template Renamed a camel case variable in the cycle template tag. 2016-08-09 09:42:27 -04:00
templatetags Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
test Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG. 2016-08-10 16:24:41 -04:00
urls Fixed #26888 -- Fixed concurrency issue in URL resolver. 2016-07-14 14:41:52 -04:00
utils Fixed #27034 -- Made makemessages independent of USE_I18N 2016-08-11 21:16:19 +02:00
views Fixed #26973 -- Fixed views.static.serve() crash with show_indexes enabled. 2016-08-10 11:27:03 -04:00
__init__.py Bumped version; master is now 1.11 pre-alpha. 2016-05-19 22:20:21 -04:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Fixed #10532 -- Relaxed hard-type checking in get_object/list_or_404 shortcuts 2016-03-29 21:34:20 +02:00