2017-04-05 04:20:56 +02:00
|
|
|
|
===========================
|
|
|
|
|
Django 1.11.1 release notes
|
|
|
|
|
===========================
|
|
|
|
|
|
2017-05-06 14:19:41 +02:00
|
|
|
|
*May 6, 2017*
|
2017-04-05 04:20:56 +02:00
|
|
|
|
|
2017-05-06 04:19:34 +02:00
|
|
|
|
Django 1.11.1 adds a minor feature and fixes several bugs in 1.11.
|
|
|
|
|
|
|
|
|
|
Allowed disabling server-side cursors on PostgreSQL
|
|
|
|
|
===================================================
|
|
|
|
|
|
|
|
|
|
The change in Django 1.11 to make :meth:`.QuerySet.iterator()` use server-side
|
2020-04-01 14:48:52 +02:00
|
|
|
|
cursors on PostgreSQL prevents running Django with PgBouncer in transaction
|
2017-05-06 04:19:34 +02:00
|
|
|
|
pooling mode. To reallow that, use the :setting:`DISABLE_SERVER_SIDE_CURSORS
|
|
|
|
|
<DATABASE-DISABLE_SERVER_SIDE_CURSORS>` setting in :setting:`DATABASES`.
|
|
|
|
|
|
|
|
|
|
See :ref:`transaction-pooling-server-side-cursors` for more discussion.
|
2017-04-05 04:20:56 +02:00
|
|
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
|
========
|
|
|
|
|
|
2017-04-07 17:47:53 +02:00
|
|
|
|
* Made migrations respect ``Index``’s ``name`` argument. If you created a
|
|
|
|
|
named index with Django 1.11, ``makemigrations`` will create a migration to
|
|
|
|
|
recreate the index with the correct name (:ticket:`28051`).
|
2017-04-07 02:28:21 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a crash when using a ``__icontains`` lookup on a ``ArrayField``
|
|
|
|
|
(:ticket:`28038`).
|
2017-04-07 12:23:25 +02:00
|
|
|
|
|
2023-06-22 12:55:38 +02:00
|
|
|
|
* Fixed a crash when using a 2-tuple in ``EmailMessage``’s ``attachments``
|
2017-04-07 12:23:25 +02:00
|
|
|
|
argument (:ticket:`28042`).
|
2017-04-10 15:47:26 +02:00
|
|
|
|
|
|
|
|
|
* Fixed ``QuerySet.filter()`` crash when it references the name of a
|
|
|
|
|
``OneToOneField`` primary key (:ticket:`28047`).
|
2017-04-15 15:21:35 +02:00
|
|
|
|
|
|
|
|
|
* Fixed empty POST data table appearing instead of "No POST data" in HTML debug
|
|
|
|
|
page (:ticket:`28079`).
|
2017-04-15 19:01:38 +02:00
|
|
|
|
|
|
|
|
|
* Restored ``BoundField``\s without any ``choices`` evaluating to ``True``
|
|
|
|
|
(:ticket:`28058`).
|
2017-04-12 02:35:17 +02:00
|
|
|
|
|
|
|
|
|
* Prevented ``SessionBase.cycle_key()`` from losing session data if
|
|
|
|
|
``_session_cache`` isn't populated (:ticket:`28066`).
|
2017-04-19 18:59:30 +02:00
|
|
|
|
|
|
|
|
|
* Fixed layout of ``ReadOnlyPasswordHashWidget`` (used in the admin's user
|
|
|
|
|
change page) (:ticket:`28097`).
|
2017-04-19 10:24:22 +02:00
|
|
|
|
|
|
|
|
|
* Allowed prefetch calls on managers with custom ``ModelIterable`` subclasses
|
|
|
|
|
(:ticket:`28096`).
|
2017-04-15 19:55:33 +02:00
|
|
|
|
|
2017-05-02 03:29:24 +02:00
|
|
|
|
* Fixed change password link in the ``contrib.auth`` admin for ``el``,
|
|
|
|
|
``es_MX``, and ``pt`` translations (:ticket:`28100`).
|
|
|
|
|
|
2017-04-15 19:55:33 +02:00
|
|
|
|
* Restored the output of the ``class`` attribute in the ``<ul>`` of widgets
|
|
|
|
|
that use the ``multiple_input.html`` template. This fixes
|
|
|
|
|
``ModelAdmin.radio_fields`` with ``admin.HORIZONTAL`` (:ticket:`28059`).
|
2017-04-20 17:36:40 +02:00
|
|
|
|
|
|
|
|
|
* Fixed crash in ``BaseGeometryWidget.subwidgets()`` (:ticket:`28039`).
|
2017-04-20 18:58:24 +02:00
|
|
|
|
|
|
|
|
|
* Fixed exception reraising in ORM query execution when ``cursor.execute()``
|
|
|
|
|
fails and the subsequent ``cursor.close()`` also fails (:ticket:`28091`).
|
2017-04-21 18:14:40 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression where ``CheckboxSelectMultiple``, ``NullBooleanSelect``,
|
|
|
|
|
``RadioSelect``, ``SelectMultiple``, and ``Select`` localized option values
|
|
|
|
|
(:ticket:`28075`).
|
2017-04-21 04:44:15 +02:00
|
|
|
|
|
|
|
|
|
* Corrected the stack level of unordered queryset pagination warnings
|
|
|
|
|
(:ticket:`28109`).
|
2017-04-22 23:04:02 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression causing incorrect queries for ``__in`` subquery lookups
|
|
|
|
|
when models use ``ForeignKey.to_field`` (:ticket:`28101`).
|
2017-04-25 17:01:21 +02:00
|
|
|
|
|
|
|
|
|
* Fixed crash when overriding the template of
|
|
|
|
|
``django.views.static.directory_index()`` (:ticket:`28122`).
|
2017-04-28 15:32:40 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression in formset ``min_num`` validation with unchanged forms
|
|
|
|
|
that have initial data (:ticket:`28130`).
|
2017-04-28 17:36:34 +02:00
|
|
|
|
|
|
|
|
|
* Prepared for ``cx_Oracle`` 6.0 support (:ticket:`28138`).
|
2017-04-30 01:00:21 +02:00
|
|
|
|
|
|
|
|
|
* Updated the ``contrib.postgres`` ``SplitArrayWidget`` to use template-based
|
|
|
|
|
widget rendering (:ticket:`28040`).
|
2017-04-29 15:35:46 +02:00
|
|
|
|
|
|
|
|
|
* Fixed crash in ``BaseGeometryWidget.get_context()`` when overriding existing
|
|
|
|
|
``attrs`` (:ticket:`28105`).
|
2017-04-07 10:44:28 +02:00
|
|
|
|
|
|
|
|
|
* Prevented ``AddIndex`` and ``RemoveIndex`` from mutating model state
|
|
|
|
|
(:ticket:`28043`).
|
2017-04-07 15:54:40 +02:00
|
|
|
|
|
|
|
|
|
* Prevented migrations from dropping database indexes from ``Meta.indexes``
|
|
|
|
|
when changing ``Field.db_index`` to ``False`` (:ticket:`28052`).
|
2017-05-03 13:21:44 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression in choice ordering in form fields with grouped and
|
|
|
|
|
non-grouped options (:ticket:`28157`).
|
2017-05-02 01:58:28 +02:00
|
|
|
|
|
|
|
|
|
* Fixed crash in ``BaseInlineFormSet._construct_form()`` when using
|
|
|
|
|
``save_as_new`` (:ticket:`28159`).
|
2017-05-03 16:39:54 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression where ``Model._state.db`` wasn't set correctly on
|
|
|
|
|
multi-table inheritance parent models after saving a child model
|
|
|
|
|
(:ticket:`28166`).
|
2017-05-03 07:25:30 +02:00
|
|
|
|
|
|
|
|
|
* Corrected the return type of ``ArrayField(CITextField())`` values retrieved
|
|
|
|
|
from the database (:ticket:`28161`).
|
2017-03-04 03:45:31 +01:00
|
|
|
|
|
|
|
|
|
* Fixed ``QuerySet.prefetch_related()`` crash when fetching relations in nested
|
|
|
|
|
``Prefetch`` objects (:ticket:`27554`).
|
2017-05-03 03:27:11 +02:00
|
|
|
|
|
|
|
|
|
* Prevented hiding GDAL errors if it's not installed when using ``contrib.gis``
|
|
|
|
|
(:ticket:`28160`). (It's a required dependency as of Django 1.11.)
|
2017-05-06 00:35:08 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression causing ``__in`` lookups on a foreign key to fail when
|
|
|
|
|
using the foreign key's parent model as the lookup value (:ticket:`28175`).
|