1.11.1.txt 4.3 KB

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