mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #29814 -- Added support for NoneType serialization in migrations.
This commit is contained in:
parent
52fec5d18f
commit
adfdb9f169
5 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
~~~~~~
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue