diff options
| author | Patrik Sletmo <patrik.sletmo@gmail.com> | 2018-10-11 13:54:37 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-11 09:02:14 -0400 |
| commit | adfdb9f1695d8710456b54282fcc6f306fc918c0 (patch) | |
| tree | 22030e1ffc91922566840ba695b6705fa8582c7e /docs | |
| parent | 52fec5d18f46febedd461c47f3829750a2a7160b (diff) | |
Fixed #29814 -- Added support for NoneType serialization in migrations.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/2.2.txt | 2 | ||||
| -rw-r--r-- | docs/topics/migrations.txt | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index 8f5409e1d1..22d7eee0c1 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -188,6 +188,8 @@ Migrations * The new :option:`migrate --plan` option prints the list of migration operations that will be performed. +* ``NoneType`` can now be serialized in migrations. + Models ~~~~~~ diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 1073ce0cbe..3f0a1fa68c 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -666,7 +666,7 @@ for basic values, and doesn't specify import paths). Django can serialize the following: -- ``int``, ``float``, ``bool``, ``str``, ``bytes``, ``None`` +- ``int``, ``float``, ``bool``, ``str``, ``bytes``, ``None``, ``NoneType`` - ``list``, ``set``, ``tuple``, ``dict`` - ``datetime.date``, ``datetime.time``, and ``datetime.datetime`` instances (include those that are timezone-aware) @@ -686,6 +686,10 @@ Django can serialize the following: Serialization support for :class:`functools.partialmethod` was added. +.. versionchanged:: 2.2 + + Serialization support for ``NoneType`` was added. + Django cannot serialize: - Nested classes |
