2014-02-10 15:05:01 +00:00
|
|
|
==========================
|
|
|
|
Django 1.6.3 release notes
|
|
|
|
==========================
|
|
|
|
|
|
|
|
*Under development*
|
|
|
|
|
|
|
|
This is Django 1.6.3, a bugfix release for Django 1.6. Django 1.6.3 fixes
|
2014-03-30 17:03:35 +00:00
|
|
|
several bugs in 1.6.2 and makes one backwards-incompatible change:
|
|
|
|
|
|
|
|
``select_for_update()`` requires a transaction
|
|
|
|
==============================================
|
|
|
|
|
|
|
|
Historically, queries that use
|
|
|
|
:meth:`~django.db.models.query.QuerySet.select_for_update()` could be
|
|
|
|
executed in autocommit mode, outside of a transaction. Before Django
|
|
|
|
1.6, Django's automatic transactions mode allowed this to be used to
|
|
|
|
lock records until the next write operation. Django 1.6 introduced
|
|
|
|
database-level autocommit; since then, execution in such a context
|
|
|
|
voids the effect of ``select_for_update()``. It is, therefore, assumed
|
2014-04-10 00:40:33 +00:00
|
|
|
now to be an error and raises an exception.
|
2014-03-30 17:03:35 +00:00
|
|
|
|
|
|
|
This change was made because such errors can be caused by including an
|
|
|
|
app which expects global transactions (e.g. :setting:`ATOMIC_REQUESTS
|
2014-04-10 00:40:33 +00:00
|
|
|
<DATABASE-ATOMIC_REQUESTS>` set to ``True``), or Django's old autocommit
|
2014-03-30 17:03:35 +00:00
|
|
|
behavior, in a project which runs without them; and further, such
|
|
|
|
errors may manifest as data-corruption bugs.
|
|
|
|
|
2014-04-10 00:40:33 +00:00
|
|
|
This change may cause test failures if you use ``select_for_update()``
|
|
|
|
in a test class which is a subclass of
|
|
|
|
:class:`~django.test.TransactionTestCase` rather than
|
|
|
|
:class:`~django.test.TestCase`.
|
|
|
|
|
2014-03-30 17:03:35 +00:00
|
|
|
Other bugfixes and changes
|
|
|
|
==========================
|
2014-02-10 15:05:01 +00:00
|
|
|
|
2014-02-10 14:55:57 +00:00
|
|
|
* Content retrieved from the GeoIP library is now properly decoded from its
|
|
|
|
default ``iso-8859-1`` encoding
|
|
|
|
(`#21996 <http://code.djangoproject.com/ticket/21996>`_).
|
2014-02-15 02:04:44 +00:00
|
|
|
|
|
|
|
* Fixed ``AttributeError`` when using
|
|
|
|
:meth:`~django.db.models.query.QuerySet.bulk_create` with ``ForeignObject``
|
|
|
|
(`#21566 <http://code.djangoproject.com/ticket/21566>`_).
|
2014-03-01 01:42:56 +00:00
|
|
|
|
|
|
|
* Fixed crash of ``QuerySet``\s that use ``F() + timedelta()`` when their query
|
|
|
|
was compiled more once
|
|
|
|
(`#21643 <http://code.djangoproject.com/ticket/21643>`_).
|
2014-03-13 15:55:38 +00:00
|
|
|
|
|
|
|
* Prevented custom ``widget`` class attribute of
|
|
|
|
:class:`~django.forms.IntegerField` subclasses from being overwritten by the
|
|
|
|
code in their ``__init__`` method
|
|
|
|
(`#22245 <http://code.djangoproject.com/ticket/22245>`_).
|
2014-03-22 11:25:26 +00:00
|
|
|
|
|
|
|
* Improved :func:`~django.utils.html.strip_tags` accuracy (but it still cannot
|
|
|
|
guarantee an HTML-safe result, as stated in the documentation).
|
2014-03-24 11:33:04 +00:00
|
|
|
|
2014-03-31 11:10:25 +00:00
|
|
|
* Fixed a regression in the :mod:`django.contrib.gis` SQL compiler for
|
|
|
|
non-concrete fields (`#22250 <http://code.djangoproject.com/ticket/22250>`_).
|
|
|
|
|
2014-03-28 14:42:58 +00:00
|
|
|
* Fixed :attr:`ModelAdmin.preserve_filters
|
|
|
|
<django.contrib.admin.ModelAdmin.preserve_filters>` when running a site with
|
|
|
|
a URL prefix (`#21795 <http://code.djangoproject.com/ticket/21795>`_).
|
|
|
|
|
2014-04-01 18:48:06 +00:00
|
|
|
* Fixed a crash in the ``find_command`` management utility when the ``PATH``
|
|
|
|
environment variable wasn't set
|
|
|
|
(`#22256 <http://code.djangoproject.com/ticket/22256>`_).
|
|
|
|
|
2014-03-31 20:35:45 +00:00
|
|
|
* Fixed :djadmin:`changepassword` on Windows
|
|
|
|
(`#22364 <https://code.djangoproject.com/ticket/22364>`_).
|
|
|
|
|
2014-04-12 01:27:34 +00:00
|
|
|
* Fixed regression in ``prefetch_related`` that caused the related objects
|
|
|
|
query to include an unnecessary join
|
|
|
|
(`#21760 <https://code.djangoproject.com/ticket/21760>`_).
|
|
|
|
|
2014-03-24 11:33:04 +00:00
|
|
|
Additionally, Django's vendored version of six, :mod:`django.utils.six` has been
|
|
|
|
upgraded to the latest release (1.6.1).
|