2014-02-10 16:05:01 +01: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 19:03:35 +02: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 02:40:33 +02:00
|
|
|
now to be an error and raises an exception.
|
2014-03-30 19:03:35 +02: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 02:40:33 +02:00
|
|
|
<DATABASE-ATOMIC_REQUESTS>` set to ``True``), or Django's old autocommit
|
2014-03-30 19:03:35 +02:00
|
|
|
behavior, in a project which runs without them; and further, such
|
|
|
|
errors may manifest as data-corruption bugs.
|
|
|
|
|
2014-04-10 02:40:33 +02: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 19:03:35 +02:00
|
|
|
Other bugfixes and changes
|
|
|
|
==========================
|
2014-02-10 16:05:01 +01:00
|
|
|
|
2014-02-10 15:55:57 +01: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 03:04:44 +01: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 02:42:56 +01: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 16:55:38 +01: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 12:25:26 +01: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 12:33:04 +01:00
|
|
|
|
2014-03-31 13:10:25 +02: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 15:42:58 +01: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 20:48:06 +02: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 22:35:45 +02:00
|
|
|
* Fixed :djadmin:`changepassword` on Windows
|
|
|
|
(`#22364 <https://code.djangoproject.com/ticket/22364>`_).
|
|
|
|
|
2014-03-24 12:33:04 +01:00
|
|
|
Additionally, Django's vendored version of six, :mod:`django.utils.six` has been
|
|
|
|
upgraded to the latest release (1.6.1).
|