summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMaxime Lorant <maxime.lorant@gmail.com>2016-11-06 13:53:00 +0100
committerTim Graham <timograham@gmail.com>2016-11-06 13:53:00 +0100
commitcb3fb34b86b17349ec428e789585d0da9604804a (patch)
treece0b621314d1b3b169391c333ae7f11ff57842cc /docs
parent73017702542ddfa29f6d5d44a9a8a8595d1b4d4c (diff)
Fixed #27378 -- Added support for serialization of uuid.UUID in migrations.
Thanks Yuriy Korobko for the initial patch and Tobias McNulty for review.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.11.txt2
-rw-r--r--docs/topics/migrations.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index f4781463a8..02d66b6641 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -286,7 +286,7 @@ Management Commands
Migrations
~~~~~~~~~~
-* ...
+* Added support for serialization of ``uuid.UUID`` objects.
Models
~~~~~~
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index b193333d47..d963e39c78 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -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)