Debian Codegraph @

docs/releases/1.11.2.txt

raw
1 ===========================
2 Django 1.11.2 release notes
3 ===========================
4
5 *June 1, 2017*
6
7 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the
8 latest string translations from Transifex are incorporated.
9
10 Minor feature
11 =============
12
13 The new ``LiveServerTestCase.port`` attribute reallows the use case of binding
14 to a specific port following the :ref:`bind to port zero
15 <liveservertestcase-port-zero-change>` change in Django 1.11.
16
17 Bugfixes
18 ========
19
20 * Added detection for GDAL 2.1 and 2.0, and removed detection for unsupported
21 versions 1.7 and 1.8 (:ticket:`28181`).
22
23 * Changed ``contrib.gis`` to raise ``ImproperlyConfigured`` rather than
24 ``GDALException`` if ``gdal`` isn't installed, to allow third-party apps to
25 catch that exception (:ticket:`28178`).
26
27 * Fixed ``django.utils.http.is_safe_url()`` crash on invalid IPv6 URLs
28 (:ticket:`28142`).
29
30 * Fixed regression causing pickling of model fields to crash (:ticket:`28188`).
31
32 * Fixed ``django.contrib.auth.authenticate()`` when multiple authentication
33 backends don't accept a positional ``request`` argument (:ticket:`28207`).
34
35 * Fixed introspection of index field ordering on PostgreSQL (:ticket:`28197`).
36
37 * Fixed a regression where ``Model._state.adding`` wasn't set correctly on
38 multi-table inheritance parent models after saving a child model
39 (:ticket:`28210`).
40
41 * Allowed ``DjangoJSONEncoder`` to serialize
42 ``django.utils.deprecation.CallableBool`` (:ticket:`28230`).
43
44 * Relaxed the validation added in Django 1.11 of the fields in the ``defaults``
45 argument of ``QuerySet.get_or_create()`` and ``update_or_create()`` to
46 reallow settable model properties (:ticket:`28222`).
47
48 * Fixed ``MultipleObjectMixin.paginate_queryset()`` crash on Python 2 if the
49 ``InvalidPage`` message contains non-ASCII (:ticket:`28204`).
50
51 * Prevented ``Subquery`` from adding an unnecessary ``CAST`` which resulted in
52 invalid SQL (:ticket:`28199`).
53
54 * Corrected detection of GDAL 2.1 on Windows (:ticket:`28181`).
55
56 * Made date-based generic views return a 404 rather than crash when given an
57 out of range date (:ticket:`28209`).
58
59 * Fixed a regression where ``file_move_safe()`` crashed when moving files to a
60 CIFS mount (:ticket:`28170`).
61
62 * Moved the ``ImageField`` file extension validation added in Django 1.11 from
63 the model field to the form field to reallow the use case of storing images
64 without an extension (:ticket:`28242`).