2014-10-23 01:38:57 +08:00
|
|
|
==========================
|
|
|
|
Django 1.7.2 release notes
|
|
|
|
==========================
|
|
|
|
|
|
|
|
*Under development*
|
|
|
|
|
|
|
|
Django 1.7.2 fixes several bugs in 1.7.1.
|
|
|
|
|
2014-11-05 09:38:38 +08:00
|
|
|
Additionally, Django's vendored version of six, :mod:`django.utils.six`, has
|
|
|
|
been upgraded to the latest release (1.8.0).
|
|
|
|
|
2014-10-23 01:38:57 +08:00
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2014-10-22 21:59:00 +08: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-24 00:24:34 +08:00
|
|
|
|
|
|
|
* Fixed a migration crash when adding an explicit ``id`` field to a model on
|
|
|
|
SQLite (:ticket:`23702`).
|
2014-10-25 03:29:59 +08:00
|
|
|
|
2014-10-27 19:01:12 +08: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-25 03:29:59 +08:00
|
|
|
* Prevented :djadmin:`flush` from loading initial data for migrated apps
|
|
|
|
(:ticket:`23699`).
|
2014-10-27 16:35:01 +08:00
|
|
|
|
|
|
|
* Fixed a :djadmin:`makemessages` regression in 1.7.1 when
|
|
|
|
:setting:`STATIC_ROOT` has the default ``None`` value (:ticket:`23717`).
|
2014-10-28 20:10:45 +08:00
|
|
|
|
2014-10-29 20:37:54 +08:00
|
|
|
* Added GeoDjango compatibility with mysqlclient database driver.
|
|
|
|
|
2014-10-28 20:10:45 +08:00
|
|
|
* Fixed MySQL 5.6+ crash with ``GeometryField``\s in migrations
|
|
|
|
(:ticket:`23719`).
|
2014-10-28 07:28:37 +08:00
|
|
|
|
|
|
|
* Fixed a migration crash when removing a field that is referenced in
|
|
|
|
``AlterIndexTogether`` or ``AlterUniqueTogether`` (:ticket:`23614`).
|
2014-10-29 08:40:02 +08:00
|
|
|
|
|
|
|
* Updated the first day of the week in the Ukrainian locale to Monday.
|
2014-10-31 01:52:42 +08:00
|
|
|
|
|
|
|
* Added support for transactional spatial metadata initialization on
|
|
|
|
SpatiaLite 4.1+ (:ticket:`23152`).
|
2014-10-31 21:08:24 +08: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 21:04:46 +08:00
|
|
|
|
|
|
|
* Fixed a migrations crash when adding ``GeometryField``\s with ``blank=True``
|
|
|
|
on PostGIS (:ticket:`23731`).
|
2014-10-09 03:12:42 +08:00
|
|
|
|
|
|
|
* Allowed usage of ``DateTimeField()`` as ``Transform.output_field``
|
|
|
|
(:ticket:`23420`).
|
2014-11-06 19:29:43 +08:00
|
|
|
|
|
|
|
* Fixed a migration serializing bug involving ``float("nan")`` and
|
2014-11-05 10:57:47 +08:00
|
|
|
``float("inf")`` (:ticket:`23770`).
|
2014-11-13 04:18:11 +08: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 10:57:47 +08:00
|
|
|
|
|
|
|
* Fixed a custom field type validation error with MySQL backend when
|
|
|
|
``db_type`` returned ``None`` (:ticket:`23761`).
|
2014-11-18 02:04:38 +08:00
|
|
|
|
|
|
|
* Fixed a migration crash when a field is renamed that is part of an
|
|
|
|
``index_together`` (:ticket:`23859`).
|
2014-11-17 01:42:23 +08:00
|
|
|
|
|
|
|
* Fixed :djadmin:`squashmigrations` to respect the ``--no-optimize`` parameter
|
|
|
|
(:ticket:`23799`).
|
2014-11-18 20:25:03 +08:00
|
|
|
|
|
|
|
* Made :class:`~django.db.migrations.operations.RenameModel` reversible
|
|
|
|
(:ticket:`22248`)
|
2014-11-18 01:13:47 +08:00
|
|
|
|
|
|
|
* Avoided unnecessary rollbacks of migrations from other apps when migrating
|
|
|
|
backwards (:ticket:`23410`).
|
2014-10-07 21:07:46 +08:00
|
|
|
|
|
|
|
* Fixed a rare query error when using deeply nested subqueries
|
|
|
|
(:ticket:`23605`).
|
2014-11-15 22:43:06 +08:00
|
|
|
|
|
|
|
* Fixed a crash in migrations when deleting a field that is part of a
|
|
|
|
``index/unique_together`` constraint (:ticket:`23794`).
|
2014-11-21 22:26:46 +08:00
|
|
|
|
|
|
|
* Fixed ``django.core.files.File.__repr__()`` when the file's ``name`` contains
|
|
|
|
Unicode characters (:ticket:`23888`).
|
2014-11-23 22:08:34 +08:00
|
|
|
|
|
|
|
* Added missing context to the admin's ``delete_selected`` view that prevented
|
|
|
|
custom site header, etc. from appearing (:ticket:`23898`).
|
2014-11-16 23:42:09 +08:00
|
|
|
|
|
|
|
* Fixed a regression with dynamically generated inlines and allowed field
|
|
|
|
references in the admin (:ticket:`23754`).
|
2014-11-26 16:22:04 +08:00
|
|
|
|
|
|
|
* Fixed an infinite loop bug for certain cyclic migration dependencies, and made
|
|
|
|
the error message for cyclic dependencies much more helpful.
|
2014-12-01 01:11:52 +08:00
|
|
|
|
|
|
|
* Added missing ``index_together`` handling for SQLite (:ticket:`23880`).
|
2014-12-01 18:13:01 +08:00
|
|
|
|
|
|
|
* Fixed a crash when ``RunSQL`` SQL content was collected by the schema editor,
|
|
|
|
typically when using ``sqlmigrate`` (:ticket:`23909`).
|
2014-11-28 02:34:14 +08: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 22:12:33 +08:00
|
|
|
|
|
|
|
* Fixed ``runserver`` crash when socket error message contained Unicode
|
|
|
|
characters (:ticket:`23946`).
|
2014-12-03 09:52:58 +08:00
|
|
|
|
|
|
|
* Fixed serialization of ``type`` when adding a ``deconstruct()`` method
|
|
|
|
(:ticket:`23950`).
|
2014-12-03 20:33:44 +08:00
|
|
|
|
|
|
|
* Prevented the
|
|
|
|
:class:`~django.contrib.auth.middleware.SessionAuthenticationMiddleware` from
|
2014-12-04 22:11:30 +08: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-05 00:56:11 +08:00
|
|
|
|
|
|
|
* Fixed index creation by the migration infrastructure, particularly when
|
2014-12-12 03:43:47 +08:00
|
|
|
dealing with PostgreSQL specific ``{text|varchar}_pattern_ops`` indexes
|
2014-12-05 00:56:11 +08:00
|
|
|
(:ticket:`23954`).
|
2014-12-12 00:52:42 +08: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-09 06:37:59 +08:00
|
|
|
|
|
|
|
* Fixed a crash when a ``MultiValueField`` has invalid data (:ticket:`23674`).
|
2014-12-04 21:22:45 +08:00
|
|
|
|
|
|
|
* Fixed a crash in the admin when using "Save as new" and also deleting a
|
|
|
|
related inline (:ticket:`23857`).
|
2014-12-12 03:36:13 +08:00
|
|
|
|
2014-12-12 08:28:03 +08: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-14 04:54:28 +08: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
|
|
|
|
temporary tablespace from 100M to 150M). This was required to accomodate
|
|
|
|
growth in Django's own test suite (:ticket:`23969`).
|
2014-12-14 23:43:27 +08:00
|
|
|
|
|
|
|
* Fixed timesince filter translations in Korean (:ticket:`23989`).
|