django1/django/core
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
..
cache Fixed #26792 -- Allowed None for the value of cache.get_or_set(). 2016-07-11 20:49:27 -04:00
checks Refs #26947 -- Added a deployment system check for SECURE_HSTS_PRELOAD. 2016-08-10 20:31:01 -04:00
files Fixed #26896 -- Allowed a lazy base_url for FileSystemStorage. 2016-07-29 14:13:54 -04:00
handlers Fixed #26915 -- Fixed regression handling responses returned from view middleware. 2016-07-25 13:41:50 -04:00
mail Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments. 2016-08-12 16:35:09 -04:00
management Fixed #27034 -- Made makemessages independent of USE_I18N 2016-08-11 21:16:19 +02:00
serializers Fixed #26656 -- Added duration (timedelta) support to DjangoJSONEncoder. 2016-07-14 13:34:15 -04:00
servers Fixed #25684 -- Made runserver use logging for request/response output. 2016-01-11 07:35:17 -05:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
exceptions.py Moved EmpytResultSet to django.core.exceptions. 2016-08-08 10:43:34 -04:00
paginator.py Fixed #26290 -- Warned that paginating an unordered QuerySet may result in inconsistent results. 2016-06-08 14:09:24 -04:00
signals.py Fixed #20349 -- Moved setting_changed signal to django.core.signals. 2014-12-24 07:18:43 -05:00
signing.py Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
urlresolvers.py Fixed #26013 -- Moved django.core.urlresolvers to django.urls. 2015-12-31 14:21:29 -05:00
validators.py Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension. 2016-06-30 09:08:50 -04:00
wsgi.py Fixed #16734 -- Set script prefix even outside of requests 2015-10-29 20:12:38 +01:00