Fixed #27378 -- Added support for serialization of uuid.UUID in migrations.

Thanks Yuriy Korobko for the initial patch and Tobias McNulty for review.
This commit is contained in:
Maxime Lorant 2016-11-06 13:53:00 +01:00 committed by Tim Graham
parent 7301770254
commit cb3fb34b86
4 changed files with 40 additions and 1 deletions

View file

@ -670,6 +670,7 @@ Django can serialize the following:
(include those that are timezone-aware)
- ``decimal.Decimal`` instances
- ``enum.Enum`` instances
- ``uuid.UUID`` instances
- ``functools.partial`` instances which have serializable ``func``, ``args``,
and ``keywords`` values.
- ``LazyObject`` instances which wrap a serializable value.
@ -682,6 +683,10 @@ Django can serialize the following:
Serialization support for ``enum.Enum`` was added.
.. versionchanged:: 1.11
Serialization support for ``uuid.UUID`` was added.
Django can serialize the following on Python 3 only:
- Unbound methods used from within the class body (see below)