2014-09-03 09:41:21 +08:00
|
|
|
==========================
|
|
|
|
Django 1.7.1 release notes
|
|
|
|
==========================
|
|
|
|
|
2014-10-23 00:23:21 +08:00
|
|
|
*October 22, 2014*
|
2014-09-03 09:41:21 +08:00
|
|
|
|
|
|
|
Django 1.7.1 fixes several bugs in 1.7.
|
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2014-10-06 02:06:51 +08:00
|
|
|
* Allowed related many-to-many fields to be referenced in the admin
|
|
|
|
(:ticket:`23604`).
|
|
|
|
|
2014-09-11 01:25:40 +08:00
|
|
|
* Added a more helpful error message if you try to migrate an app without first
|
|
|
|
creating the ``contenttypes`` table (:ticket:`22411`).
|
|
|
|
|
|
|
|
* Modified migrations dependency algorithm to avoid possible infinite recursion.
|
2014-09-06 22:07:34 +08:00
|
|
|
|
|
|
|
* Fixed a ``UnicodeDecodeError`` when the ``flush`` error message contained
|
|
|
|
Unicode characters (:ticket:`22882`).
|
2014-09-04 23:32:51 +08:00
|
|
|
|
|
|
|
* Reinstated missing ``CHECK`` SQL clauses which were omitted on some backends
|
|
|
|
when not using migrations (:ticket:`23416`).
|
2014-09-06 08:07:42 +08:00
|
|
|
|
|
|
|
* Fixed serialization of ``type`` objects in migrations (:ticket:`22951`).
|
2014-09-05 05:04:53 +08:00
|
|
|
|
|
|
|
* Allowed inline and hidden references to admin fields (:ticket:`23431`).
|
2014-09-08 09:01:42 +08:00
|
|
|
|
|
|
|
* The ``@deconstructible`` decorator now fails with a ``ValueError`` if the
|
|
|
|
decorated object cannot automatically be imported (:ticket:`23418`).
|
2014-09-09 03:54:57 +08:00
|
|
|
|
|
|
|
* Fixed a typo in an ``inlineformset_factory()`` error message that caused a
|
|
|
|
crash (:ticket:`23451`).
|
2014-09-09 20:29:49 +08:00
|
|
|
|
|
|
|
* Restored the ability to use :setting:`ABSOLUTE_URL_OVERRIDES` with the
|
|
|
|
``'auth.User'`` model (:ticket:`11775`). As a side effect, the setting now
|
|
|
|
adds a ``get_absolute_url()`` method to any model that appears in
|
|
|
|
``ABSOLUTE_URL_OVERRIDES`` but doesn't define ``get_absolute_url()``.
|
2014-09-10 05:28:45 +08:00
|
|
|
|
2014-09-11 01:25:40 +08:00
|
|
|
* Avoided masking some `ImportError` exceptions during application loading
|
|
|
|
(:ticket:`22920`).
|
|
|
|
|
2014-09-10 05:28:45 +08:00
|
|
|
* Empty ``index_together`` or ``unique_together`` model options no longer
|
|
|
|
results in infinite migrations (:ticket:`23452`).
|
2014-09-10 01:34:40 +08:00
|
|
|
|
|
|
|
* Fixed crash in ``contrib.sitemaps`` if ``lastmod`` returned a ``date`` rather
|
|
|
|
than a ``datetime`` (:ticket:`23403`).
|
2014-09-13 21:21:52 +08:00
|
|
|
|
|
|
|
* Allowed migrations to work with ``app_label``\s that have the same last
|
|
|
|
part (e.g. ``django.contrib.auth`` and ``vendor.auth``) (:ticket:`23483`).
|
2014-09-16 00:17:28 +08:00
|
|
|
|
2014-09-16 20:32:23 +08:00
|
|
|
* Restored the ability to deepcopy ``F`` objects (:ticket:`23492`).
|
2014-09-17 23:11:10 +08:00
|
|
|
|
|
|
|
* Formats for Welsh (``cy``) and several Chinese locales (``zh_CN``,
|
2014-09-22 18:37:07 +08:00
|
|
|
``zh_Hans``, ``zh_Hant`` and ``zh_TW``) have been added. Formats for
|
|
|
|
Macedonian have been fixed (trailing dot removed, :ticket:`23532`).
|
2014-09-17 01:37:18 +08:00
|
|
|
|
|
|
|
* Added quoting of constraint names in the SQL generated by migrations to
|
|
|
|
prevent crash with uppercase characters in the name (:ticket:`23065`).
|
2014-09-17 13:34:10 +08:00
|
|
|
|
|
|
|
* Fixed renaming of models with a self-referential many-to-many field
|
|
|
|
(``ManyToManyField('self')``) (:ticket:`23503`).
|
2014-09-23 05:29:44 +08:00
|
|
|
|
|
|
|
* Added the :meth:`~django.contrib.admin.InlineModelAdmin.get_extra()`,
|
|
|
|
:meth:`~django.contrib.admin.InlineModelAdmin.get_max_num()`, and
|
|
|
|
:meth:`~django.contrib.admin.InlineModelAdmin.get_min_num()` hooks to
|
|
|
|
:class:`~django.contrib.contenttypes.admin.GenericInlineModelAdmin`
|
|
|
|
(:ticket:`23539`).
|
2014-09-24 05:17:00 +08:00
|
|
|
|
|
|
|
* Made ``migrations.RunSQL`` no longer require percent sign escaping. This is
|
|
|
|
now consistent with ``cursor.execute()`` (:ticket:`23426`).
|
2014-09-15 23:17:12 +08:00
|
|
|
|
|
|
|
* Made the :setting:`SERIALIZE <TEST_SERIALIZE>` entry in the
|
|
|
|
:setting:`TEST <DATABASE-TEST>` dictionary usable (:ticket:`23421`).
|
2014-09-08 08:26:12 +08:00
|
|
|
|
|
|
|
* Fixed bug in migrations that prevented foreign key constraints to unmanaged
|
|
|
|
models with a custom primary key (:ticket:`23415`).
|
2014-09-24 02:13:59 +08:00
|
|
|
|
|
|
|
* Added ``SchemaEditor`` for MySQL GIS backend so that spatial indexes will be
|
|
|
|
created for apps with migrations (:ticket:`23538`).
|
2014-09-26 02:21:12 +08:00
|
|
|
|
2014-09-18 19:42:51 +08:00
|
|
|
* Added ``SchemaEditor`` for Oracle GIS backend so that spatial metadata and
|
|
|
|
indexes will be created for apps with migrations (:ticket:`23537`).
|
|
|
|
|
2014-09-26 02:21:12 +08:00
|
|
|
* Coerced the ``related_name`` model field option to unicode during migration
|
|
|
|
generation to generate migrations that work with both Python 2 and 3
|
|
|
|
(:ticket:`23455`).
|
2014-09-27 01:01:34 +08:00
|
|
|
|
|
|
|
* Fixed ``MigrationWriter`` to handle builtin types without imports
|
|
|
|
(:ticket:`23560`).
|
2014-10-07 01:09:21 +08:00
|
|
|
|
|
|
|
* Fixed ``deepcopy`` on ``ErrorList`` (:ticket:`23594`).
|
2014-10-07 01:35:52 +08:00
|
|
|
|
|
|
|
* Made the :mod:`~django.contrib.admindocs` view to browse view details check
|
|
|
|
if the view specified in the URL exists in the URLconf. Previously it was
|
|
|
|
possible to import arbitrary packages from the Python path. This was not
|
|
|
|
considered a security issue because ``admindocs`` is only accessible to staff
|
|
|
|
users (:ticket:`23601`).
|
2014-10-07 04:07:20 +08:00
|
|
|
|
|
|
|
* Fixed ``UnicodeDecodeError`` crash in ``AdminEmailHandler`` with non-ASCII
|
|
|
|
characters in the request (:ticket:`23593`).
|
2014-10-08 04:27:31 +08:00
|
|
|
|
|
|
|
* Fixed missing ``get_or_create`` and ``update_or_create`` on related managers
|
|
|
|
causing ``IntegrityError`` (:ticket:`23611`).
|
2014-10-09 02:06:18 +08:00
|
|
|
|
|
|
|
* Made :func:`~django.utils.http.urlsafe_base64_decode` return the proper
|
|
|
|
type (byte string) on Python 3 (:ticket:`23333`).
|
2014-10-07 07:53:21 +08:00
|
|
|
|
2014-10-09 23:48:23 +08:00
|
|
|
* :djadmin:`makemigrations` can now serialize timezone-aware values
|
|
|
|
(:ticket:`23365`).
|
|
|
|
|
2014-10-07 07:53:21 +08:00
|
|
|
* Added a prompt to the migrations questioner when removing the null constraint
|
|
|
|
from a field to prevent an IntegrityError on existing NULL rows
|
|
|
|
(:ticket:`23609`).
|
2014-10-09 06:47:48 +08:00
|
|
|
|
|
|
|
* Fixed generic relations in ``ModelAdmin.list_filter`` (:ticket:`23616`).
|
2014-10-09 20:18:31 +08:00
|
|
|
|
|
|
|
* Restored RFC compliance for the SMTP backend on Python 3 (:ticket:`23063`).
|
2014-10-13 02:53:19 +08:00
|
|
|
|
|
|
|
* Fixed a crash while parsing cookies containing invalid content
|
|
|
|
(:ticket:`23638`).
|
2014-10-14 21:10:27 +08:00
|
|
|
|
|
|
|
* The system check framework now raises error **models.E020** when the
|
|
|
|
class method ``Model.check()`` is unreachable (:ticket:`23615`).
|
2014-10-17 20:56:39 +08:00
|
|
|
|
|
|
|
* Made the Oracle test database creation drop the test user in the event of an
|
|
|
|
unclean exit of a previous test run (:ticket:`23649`).
|
2014-10-14 22:20:24 +08:00
|
|
|
|
|
|
|
* Fixed :djadmin:`makemigrations` to detect changes to
|
|
|
|
:attr:`Meta.db_table <django.db.models.Options.db_table>` (:ticket:`23629`).
|
2014-10-21 04:32:43 +08:00
|
|
|
|
|
|
|
* Fixed a regression when feeding the Django test client with an empty data
|
|
|
|
string (:ticket:`21740`).
|
2014-10-18 18:00:38 +08:00
|
|
|
|
|
|
|
* Fixed a regression in :djadmin:`makemessages` where static files were
|
|
|
|
unexpectedly ignored (:ticket:`23583`).
|