From cc2ca9c550fbf8fca8684b373a3c8e3618eea08e Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Wed, 25 Nov 2015 12:31:23 -0500 Subject: 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. --- docs/releases/1.9.txt | 3 ++- docs/topics/migrations.txt | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 7980579a3a..7929bc969e 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -451,7 +451,8 @@ Migrations :djadminopt:`migrate --fake-initial <--fake-initial>` to more easily detect initial migrations. -* Added support for serialization of ``functools.partial`` objects. +* Added support for serialization of ``functools.partial`` and ``LazyObject`` + instances. * When supplying ``None`` as a value in :setting:`MIGRATION_MODULES`, Django will consider the app an app without migrations. 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 -- cgit v1.3