2014-10-22 17:38:57 +00:00
|
|
|
==========================
|
|
|
|
Django 1.7.2 release notes
|
|
|
|
==========================
|
|
|
|
|
2015-01-03 00:20:18 +00:00
|
|
|
*January 2, 2015*
|
2014-10-22 17:38:57 +00:00
|
|
|
|
|
|
|
Django 1.7.2 fixes several bugs in 1.7.1.
|
|
|
|
|
2017-01-18 16:51:29 +00:00
|
|
|
Additionally, Django's vendored version of six, ``django.utils.six``, has
|
2015-01-02 17:35:41 +00:00
|
|
|
been upgraded to the latest release (1.9.0).
|
2014-11-05 01:38:38 +00:00
|
|
|
|
2014-10-22 17:38:57 +00:00
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2014-10-22 13:59:00 +00:00
|
|
|
* Fixed migration's renaming of auto-created many-to-many tables when changing
|
|
|
|
:attr:`Meta.db_table <django.db.models.Options.db_table>` (:ticket:`23630`).
|
2014-10-23 16:24:34 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash when adding an explicit ``id`` field to a model on
|
|
|
|
SQLite (:ticket:`23702`).
|
2014-10-24 19:29:59 +00:00
|
|
|
|
2014-10-27 11:01:12 +00:00
|
|
|
* Added a warning for duplicate models when a module is reloaded. Previously a
|
|
|
|
``RuntimeError`` was raised every time two models clashed in the app registry.
|
|
|
|
(:ticket:`23621`).
|
|
|
|
|
2014-10-24 19:29:59 +00:00
|
|
|
* Prevented :djadmin:`flush` from loading initial data for migrated apps
|
|
|
|
(:ticket:`23699`).
|
2014-10-27 08:35:01 +00:00
|
|
|
|
|
|
|
* Fixed a :djadmin:`makemessages` regression in 1.7.1 when
|
|
|
|
:setting:`STATIC_ROOT` has the default ``None`` value (:ticket:`23717`).
|
2014-10-28 12:10:45 +00:00
|
|
|
|
2014-10-29 12:37:54 +00:00
|
|
|
* Added GeoDjango compatibility with mysqlclient database driver.
|
|
|
|
|
2014-10-28 12:10:45 +00:00
|
|
|
* Fixed MySQL 5.6+ crash with ``GeometryField``\s in migrations
|
|
|
|
(:ticket:`23719`).
|
2014-10-27 23:28:37 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash when removing a field that is referenced in
|
|
|
|
``AlterIndexTogether`` or ``AlterUniqueTogether`` (:ticket:`23614`).
|
2014-10-29 00:40:02 +00:00
|
|
|
|
|
|
|
* Updated the first day of the week in the Ukrainian locale to Monday.
|
2014-10-30 17:52:42 +00:00
|
|
|
|
|
|
|
* Added support for transactional spatial metadata initialization on
|
|
|
|
SpatiaLite 4.1+ (:ticket:`23152`).
|
2014-10-31 13:08:24 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash that prevented changing a nullable field with a
|
|
|
|
default to non-nullable with the same default (:ticket:`23738`).
|
2014-10-31 13:04:46 +00:00
|
|
|
|
2014-12-02 18:25:46 +00:00
|
|
|
* Fixed a migration crash when adding ``GeometryField``\s with ``blank=True``
|
2014-10-31 13:04:46 +00:00
|
|
|
on PostGIS (:ticket:`23731`).
|
2014-10-08 19:12:42 +00:00
|
|
|
|
|
|
|
* Allowed usage of ``DateTimeField()`` as ``Transform.output_field``
|
|
|
|
(:ticket:`23420`).
|
2014-11-06 11:29:43 +00:00
|
|
|
|
|
|
|
* Fixed a migration serializing bug involving ``float("nan")`` and
|
2014-11-05 02:57:47 +00:00
|
|
|
``float("inf")`` (:ticket:`23770`).
|
2014-11-12 20:18:11 +00:00
|
|
|
|
|
|
|
* Fixed a regression where custom form fields having a ``queryset`` attribute
|
|
|
|
but no ``limit_choices_to`` could not be used in a
|
|
|
|
:class:`~django.forms.ModelForm` (:ticket:`23795`).
|
2014-11-05 02:57:47 +00:00
|
|
|
|
|
|
|
* Fixed a custom field type validation error with MySQL backend when
|
|
|
|
``db_type`` returned ``None`` (:ticket:`23761`).
|
2014-11-17 18:04:38 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash when a field is renamed that is part of an
|
|
|
|
``index_together`` (:ticket:`23859`).
|
2014-11-16 17:42:23 +00:00
|
|
|
|
2014-12-02 18:25:46 +00:00
|
|
|
* Fixed :djadmin:`squashmigrations` to respect the ``--no-optimize`` parameter
|
2014-11-16 17:42:23 +00:00
|
|
|
(:ticket:`23799`).
|
2014-11-18 12:25:03 +00:00
|
|
|
|
|
|
|
* Made :class:`~django.db.migrations.operations.RenameModel` reversible
|
|
|
|
(:ticket:`22248`)
|
2014-11-17 17:13:47 +00:00
|
|
|
|
|
|
|
* Avoided unnecessary rollbacks of migrations from other apps when migrating
|
|
|
|
backwards (:ticket:`23410`).
|
2014-10-07 13:07:46 +00:00
|
|
|
|
|
|
|
* Fixed a rare query error when using deeply nested subqueries
|
|
|
|
(:ticket:`23605`).
|
2014-11-15 14:43:06 +00:00
|
|
|
|
|
|
|
* Fixed a crash in migrations when deleting a field that is part of a
|
|
|
|
``index/unique_together`` constraint (:ticket:`23794`).
|
2014-11-21 14:26:46 +00:00
|
|
|
|
|
|
|
* Fixed ``django.core.files.File.__repr__()`` when the file's ``name`` contains
|
|
|
|
Unicode characters (:ticket:`23888`).
|
2014-11-23 14:08:34 +00:00
|
|
|
|
|
|
|
* Added missing context to the admin's ``delete_selected`` view that prevented
|
|
|
|
custom site header, etc. from appearing (:ticket:`23898`).
|
2014-11-16 15:42:09 +00:00
|
|
|
|
|
|
|
* Fixed a regression with dynamically generated inlines and allowed field
|
|
|
|
references in the admin (:ticket:`23754`).
|
2014-11-26 08:22:04 +00:00
|
|
|
|
|
|
|
* Fixed an infinite loop bug for certain cyclic migration dependencies, and made
|
|
|
|
the error message for cyclic dependencies much more helpful.
|
2014-11-30 17:11:52 +00:00
|
|
|
|
|
|
|
* Added missing ``index_together`` handling for SQLite (:ticket:`23880`).
|
2014-12-01 10:13:01 +00:00
|
|
|
|
|
|
|
* Fixed a crash when ``RunSQL`` SQL content was collected by the schema editor,
|
|
|
|
typically when using ``sqlmigrate`` (:ticket:`23909`).
|
2014-11-27 18:34:14 +00:00
|
|
|
|
|
|
|
* Fixed a regression in ``contrib.admin`` add/change views which caused some
|
|
|
|
``ModelAdmin`` methods to receive the incorrect ``obj`` value
|
|
|
|
(:ticket:`23934`).
|
2014-12-02 14:12:33 +00:00
|
|
|
|
|
|
|
* Fixed ``runserver`` crash when socket error message contained Unicode
|
|
|
|
characters (:ticket:`23946`).
|
2014-12-03 01:52:58 +00:00
|
|
|
|
|
|
|
* Fixed serialization of ``type`` when adding a ``deconstruct()`` method
|
|
|
|
(:ticket:`23950`).
|
2014-12-03 12:33:44 +00:00
|
|
|
|
|
|
|
* Prevented the
|
2015-09-03 00:50:34 +00:00
|
|
|
``django.contrib.auth.middleware.SessionAuthenticationMiddleware`` from
|
2014-12-04 14:11:30 +00:00
|
|
|
setting a ``"Vary: Cookie"`` header on all responses (:ticket:`23939`).
|
|
|
|
|
|
|
|
* Fixed a crash when adding ``blank=True`` to ``TextField()`` on MySQL
|
|
|
|
(:ticket:`23920`).
|
2014-12-04 16:56:11 +00:00
|
|
|
|
|
|
|
* Fixed index creation by the migration infrastructure, particularly when
|
2014-12-11 19:43:47 +00:00
|
|
|
dealing with PostgreSQL specific ``{text|varchar}_pattern_ops`` indexes
|
2014-12-04 16:56:11 +00:00
|
|
|
(:ticket:`23954`).
|
2014-12-11 16:52:42 +00:00
|
|
|
|
|
|
|
* Fixed bug in ``makemigrations`` that created broken migration files when
|
|
|
|
dealing with multiple table inheritance and inheriting from more than one
|
|
|
|
model (:ticket:`23956`).
|
2014-12-08 22:37:59 +00:00
|
|
|
|
|
|
|
* Fixed a crash when a ``MultiValueField`` has invalid data (:ticket:`23674`).
|
2014-12-04 13:22:45 +00:00
|
|
|
|
|
|
|
* Fixed a crash in the admin when using "Save as new" and also deleting a
|
|
|
|
related inline (:ticket:`23857`).
|
2014-12-11 19:36:13 +00:00
|
|
|
|
2014-12-12 00:28:03 +00:00
|
|
|
* Always converted ``related_name`` to text (unicode), since that is required
|
|
|
|
on Python 3 for interpolation. Removed conversion of ``related_name`` to text
|
|
|
|
in migration deconstruction (:ticket:`23455` and :ticket:`23982`).
|
2014-12-13 20:54:28 +00:00
|
|
|
|
|
|
|
* Enlarged the sizes of tablespaces which are created by default for testing
|
|
|
|
on Oracle (the main tablespace was increased from 200M to 300M and the
|
2014-12-15 18:42:52 +00:00
|
|
|
temporary tablespace from 100M to 150M). This was required to accommodate
|
2014-12-13 20:54:28 +00:00
|
|
|
growth in Django's own test suite (:ticket:`23969`).
|
2014-12-14 15:43:27 +00:00
|
|
|
|
2014-12-15 18:42:52 +00:00
|
|
|
* Fixed ``timesince`` filter translations in Korean (:ticket:`23989`).
|
2014-12-15 14:14:39 +00:00
|
|
|
|
|
|
|
* Fixed the SQLite ``SchemaEditor`` to properly add defaults in the absence of
|
|
|
|
a user specified ``default``. For example, a ``CharField`` with ``blank=True``
|
|
|
|
didn't set existing rows to an empty string which resulted in a crash when
|
|
|
|
adding the ``NOT NULL`` constraint (:ticket:`23987`).
|
2014-12-06 20:43:19 +00:00
|
|
|
|
|
|
|
* ``makemigrations`` no longer prompts for a default value when adding
|
|
|
|
``TextField()`` or ``CharField()`` without a ``default`` (:ticket:`23405`).
|
2014-12-16 00:22:28 +00:00
|
|
|
|
2014-12-02 18:25:46 +00:00
|
|
|
* Fixed a migration crash when adding ``order_with_respect_to`` to a table
|
2014-12-16 00:22:28 +00:00
|
|
|
with existing rows (:ticket:`23983`).
|
2014-12-09 13:43:40 +00:00
|
|
|
|
|
|
|
* Restored the ``pre_migrate`` signal if all apps have migrations
|
|
|
|
(:ticket:`23975`).
|
2014-12-14 03:22:37 +00:00
|
|
|
|
|
|
|
* Made admin system checks run for custom ``AdminSite``\s (:ticket:`23497`).
|
2014-12-17 16:25:28 +00:00
|
|
|
|
|
|
|
* Ensured the app registry is fully populated when unpickling models. When an
|
|
|
|
external script (like a queueing infrastructure) reloads pickled models, it
|
|
|
|
could crash with an ``AppRegistryNotReady`` exception (:ticket:`24007`).
|
2014-12-18 20:17:17 +00:00
|
|
|
|
|
|
|
* Added quoting to field indexes in the SQL generated by migrations to prevent
|
2019-08-21 08:57:24 +00:00
|
|
|
a crash when the index name requires it (:ticket:`24015`).
|
2014-12-16 23:30:26 +00:00
|
|
|
|
|
|
|
* Added ``datetime.time`` support to migrations questioner (:ticket:`23998`).
|
2014-12-22 20:13:47 +00:00
|
|
|
|
|
|
|
* Fixed admindocs crash on apps installed as eggs (:ticket:`23525`).
|
2014-12-23 17:27:49 +00:00
|
|
|
|
|
|
|
* Changed migrations autodetector to generate an ``AlterModelOptions`` operation
|
|
|
|
instead of ``DeleteModel`` and ``CreateModel`` operations when changing
|
|
|
|
``Meta.managed``. This prevents data loss when changing ``managed`` from
|
|
|
|
``False`` to ``True`` and vice versa (:ticket:`24037`).
|
2014-12-26 20:27:11 +00:00
|
|
|
|
|
|
|
* Enabled the ``sqlsequencereset`` command on apps with migrations
|
|
|
|
(:ticket:`24054`).
|
2014-12-27 14:13:12 +00:00
|
|
|
|
|
|
|
* Added tablespace SQL to apps with migrations (:ticket:`24051`).
|
2014-12-27 14:06:38 +00:00
|
|
|
|
|
|
|
* Corrected ``contrib.sites`` default site creation in a multiple database
|
|
|
|
setup (:ticket:`24000`).
|
2014-12-27 17:26:48 +00:00
|
|
|
|
|
|
|
* Restored support for objects that aren't :class:`str` or :class:`bytes` in
|
2016-05-10 16:46:47 +00:00
|
|
|
``django.utils.safestring.mark_for_escaping()`` on Python 3.
|
2014-12-27 17:26:48 +00:00
|
|
|
|
|
|
|
* Supported strings escaped by third-party libraries with the ``__html__``
|
|
|
|
convention in the template engine (:ticket:`23831`).
|
2014-12-29 21:23:18 +00:00
|
|
|
|
|
|
|
* Prevented extraneous ``DROP DEFAULT`` SQL in migrations (:ticket:`23581`).
|
2014-11-15 13:45:00 +00:00
|
|
|
|
|
|
|
* Restored the ability to use more than five levels of subqueries
|
|
|
|
(:ticket:`23758`).
|
2014-12-23 15:51:36 +00:00
|
|
|
|
|
|
|
* Fixed crash when ``ValidationError`` is initialized with a ``ValidationError``
|
|
|
|
that is initialized with a dictionary (:ticket:`24008`).
|
2014-12-31 22:26:15 +00:00
|
|
|
|
|
|
|
* Prevented a crash on apps without migrations when running ``migrate --list``
|
|
|
|
(:ticket:`23366`).
|