Fixed #29814 -- Added support for NoneType serialization in migrations.

This commit is contained in:
Patrik Sletmo 2018-10-11 13:54:37 +02:00 committed by Tim Graham
parent 52fec5d18f
commit adfdb9f169
5 changed files with 12 additions and 1 deletions

View file

@ -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
~~~~~~

View file

@ -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