diff options
| author | Simon Charette <charette.s@gmail.com> | 2015-11-25 12:31:23 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2015-11-26 11:21:35 -0500 |
| commit | b4a1d545db19bb427af4043ce2c689dad856514f (patch) | |
| tree | 3e5a60813e6ac434f2673563f2cb141a0b44fa9b /docs/topics | |
| parent | f7e599ad25e52e8108a2bf6c17fb203b398ed986 (diff) | |
[1.9.x] 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.
Backport of cc2ca9c550fbf8fca8684b373a3c8e3618eea08e from master
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/migrations.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 57b6c3216a..24236ec9da 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -659,6 +659,7 @@ Django can serialize the following: - ``decimal.Decimal`` 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) @@ -666,7 +667,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. Django can serialize the following on Python 3 only: |
