2015-04-01 22:08:15 +02:00
|
|
|
|
==========================
|
|
|
|
|
Django 1.8.1 release notes
|
|
|
|
|
==========================
|
|
|
|
|
|
|
|
|
|
*Under development*
|
|
|
|
|
|
2015-04-21 01:26:31 +02:00
|
|
|
|
Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the
|
|
|
|
|
migrations framework.
|
2015-04-01 22:08:15 +02:00
|
|
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
|
========
|
|
|
|
|
|
2015-04-02 16:49:41 +02:00
|
|
|
|
* Added support for serializing :class:`~datetime.timedelta` objects in
|
|
|
|
|
migrations (:ticket:`24566`).
|
2015-04-03 11:26:20 +02:00
|
|
|
|
|
|
|
|
|
* Restored proper parsing of the :djadmin:`testserver` command's positional
|
|
|
|
|
arguments (fixture names) (:ticket:`24571`).
|
2015-04-03 12:11:54 +02:00
|
|
|
|
|
|
|
|
|
* Prevented ``TypeError`` in translation functions ``check_for_language()`` and
|
|
|
|
|
``get_language_bidi()`` when translations are deactivated (:ticket:`24569`).
|
2015-04-05 15:59:23 +02:00
|
|
|
|
|
|
|
|
|
* Fixed :djadmin:`squashmigrations` command when using
|
|
|
|
|
:class:`~django.db.migrations.operations.SeparateDatabaseAndState`
|
|
|
|
|
(:ticket:`24278`).
|
2015-04-04 21:22:30 +02:00
|
|
|
|
|
|
|
|
|
* Stripped microseconds from ``datetime`` values when using an older version of
|
|
|
|
|
the MySQLdb DB API driver as it does not support fractional seconds
|
|
|
|
|
(:ticket:`24584`).
|
2015-04-03 23:36:35 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a migration crash when altering
|
|
|
|
|
:class:`~django.db.models.ManyToManyField`\s (:ticket:`24513`).
|
2015-04-07 15:08:05 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a crash with ``QuerySet.update()`` on foreign keys to one-to-one fields
|
|
|
|
|
(:ticket:`24578`).
|
2015-04-11 11:07:13 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a regression in the model detail view of
|
|
|
|
|
:mod:`~django.contrib.admindocs` when a model has a reverse foreign key
|
|
|
|
|
relation (:ticket:`24624`).
|
2015-03-31 15:47:06 +02:00
|
|
|
|
|
|
|
|
|
* Prevented arbitrary file inclusions in :mod:`~django.contrib.admindocs`
|
|
|
|
|
(:ticket:`24625`).
|
2015-04-09 20:47:05 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a crash with ``QuerySet.update()`` on foreign keys to instances with
|
|
|
|
|
``uuid`` primary keys (:ticket:`24611`).
|
2015-04-13 22:54:04 +02:00
|
|
|
|
|
|
|
|
|
* Fixed database introspection with SQLite 3.8.9 (released April 8, 2015)
|
|
|
|
|
(:ticket:`24637`).
|
2015-04-13 18:17:38 +02:00
|
|
|
|
|
|
|
|
|
* Updated ``urlpatterns`` examples generated by :djadmin:`startproject` to
|
|
|
|
|
remove usage of referencing views by dotted path in
|
|
|
|
|
:func:`~django.conf.urls.url` which is deprecated in Django 1.8
|
|
|
|
|
(:ticket:`24635`).
|
2015-04-15 07:46:19 +02:00
|
|
|
|
|
|
|
|
|
* Fixed queries where an expression was referenced in ``order_by()``, but wasn't
|
|
|
|
|
part of the select clause. An example query is
|
|
|
|
|
``qs.annotate(foo=F('field')).values('pk').order_by('foo'))`` (:ticket:`24615`).
|
2015-04-16 07:39:31 +02:00
|
|
|
|
|
|
|
|
|
* Fixed a database table name quoting regression (:ticket:`24605`).
|
2015-04-11 16:10:31 +02:00
|
|
|
|
|
|
|
|
|
* Prevented the loss of ``null``/``not null`` column properties during field
|
|
|
|
|
alteration of MySQL databases (:ticket:`24595`).
|
2015-04-17 17:26:39 +02:00
|
|
|
|
|
|
|
|
|
* Fixed JavaScript path of ``contrib.admin``’s related field widget when using
|
|
|
|
|
alternate static file storages (:ticket:`24655`).
|
2015-04-21 01:26:31 +02:00
|
|
|
|
|
2015-04-03 18:42:44 +02:00
|
|
|
|
* Fixed a migration crash when adding new relations to models
|
|
|
|
|
(:ticket:`24573`).
|
|
|
|
|
|
2015-04-25 03:08:23 +02:00
|
|
|
|
* Fixed a migration crash when applying migrations with model managers on
|
|
|
|
|
Python 3 that were generated on Python 2 (:ticket:`24701`).
|
|
|
|
|
|
2015-04-28 16:55:56 +02:00
|
|
|
|
* Restored the ability to use iterators as queryset filter arguments
|
2015-04-28 00:23:56 +02:00
|
|
|
|
(:ticket:`24719`).
|
|
|
|
|
|
2015-04-30 01:39:50 +02:00
|
|
|
|
* Fixed a migration crash when renaming the target model of a many-to-many
|
|
|
|
|
relation (:ticket:`24725`).
|
|
|
|
|
|
2015-04-30 15:55:18 +02:00
|
|
|
|
* Removed flushing of the test database with :djadminopt:`--keepdb`, which
|
|
|
|
|
prevented apps with data migrations from using the option (:ticket:`24729`).
|
|
|
|
|
|
2015-04-19 20:38:32 +02:00
|
|
|
|
* Fixed ``makemessages`` crash in some locales (:ticket:`23271`).
|
|
|
|
|
|
2015-04-21 01:26:31 +02:00
|
|
|
|
Optimizations
|
|
|
|
|
=============
|
|
|
|
|
|
|
|
|
|
* Changed ``ModelState`` to deepcopy fields instead of deconstructing and
|
|
|
|
|
reconstructing (:ticket:`24591`). This speeds up the rendering of model
|
|
|
|
|
states and reduces memory usage when running :djadmin:`manage.py migrate
|
|
|
|
|
<migrate>`.
|