diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-12-01 19:24:56 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-06 14:49:37 -0500 |
| commit | 183fb7b2b9778f7d7cc91f5a7e5afec61b85179e (patch) | |
| tree | f5ecd2abb39a26daa7a2f200edf3e420d3e6c1ad /docs | |
| parent | b728ab22e1b349e4c716ab005d305c48ad0338dd (diff) | |
Fixed #28870 -- Added support for functools.partialmethod serialization in migrations.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/2.1.txt | 2 | ||||
| -rw-r--r-- | docs/topics/migrations.txt | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt index ed1ee8cb88..1183bd3121 100644 --- a/docs/releases/2.1.txt +++ b/docs/releases/2.1.txt @@ -150,7 +150,7 @@ Management Commands Migrations ~~~~~~~~~~ -* ... +* Added support for serialization of ``functools.partialmethod`` objects. Models ~~~~~~ diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 227d64d989..a45966ccb0 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -661,8 +661,8 @@ Django can serialize the following: - ``decimal.Decimal`` instances - ``enum.Enum`` instances - ``uuid.UUID`` instances -- ``functools.partial`` instances which have serializable ``func``, ``args``, - and ``keywords`` values. +- :func:`functools.partial` and :class:`functools.partialmethod` 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) @@ -670,6 +670,10 @@ Django can serialize the following: - Any class reference (must be in module's top-level scope) - Anything with a custom ``deconstruct()`` method (:ref:`see below <custom-deconstruct-method>`) +.. versionchanged:: 2.1 + + Serialization support for :class:`functools.partialmethod` was added. + Django cannot serialize: - Nested classes |
