mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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:
committed by
Tim Graham
parent
7301770254
commit
cb3fb34b86
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user