summaryrefslogtreecommitdiff
path: root/docs/topics/migrations.txt
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2015-11-25 12:31:23 -0500
committerSimon Charette <charette.s@gmail.com>2015-11-26 11:14:47 -0500
commitcc2ca9c550fbf8fca8684b373a3c8e3618eea08e (patch)
treef609b8775ae1ad21d5d706a625c0a432e615643a /docs/topics/migrations.txt
parent831514867c9a2f8321ef15d0de25352a5b9ee3b9 (diff)
downloaddjango-cc2ca9c550fbf8fca8684b373a3c8e3618eea08e.tar.gz
Fixed #25807 -- Instructed the migration writer about lazy objects.
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation and Tim for the review.
Diffstat (limited to 'docs/topics/migrations.txt')
-rw-r--r--docs/topics/migrations.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 44b3afe5f0..24491c6632 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -648,6 +648,7 @@ Django can serialize the following:
- ``enum.Enum`` instances
- ``functools.partial`` instances which have serializable ``func``, ``args``,
and ``keywords`` values.
+- ``LazyObject`` instances which wrap a serializable value.
- Any Django field
- Any function or method reference (e.g. ``datetime.datetime.today``) (must be in module's top-level scope)
- Any class reference (must be in module's top-level scope)
@@ -655,7 +656,8 @@ Django can serialize the following:
.. versionchanged:: 1.9
- Serialization support for `functools.partial` was added.
+ Serialization support for ``functools.partial`` and ``LazyObject``
+ instances was added.
.. versionchanged:: 1.10