summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPiper Merriam <pipermerriam@gmail.com>2015-07-28 10:51:25 -0600
committerTim Graham <timograham@gmail.com>2015-07-29 10:15:50 -0400
commit537818af8783a4f9f239ed6277b1f810c1666839 (patch)
tree7a534c43f6ab3cd09bc0b2dd28ba80e6d78e943a /docs
parentb1e552debf8303124a213008d319df9a817b4932 (diff)
Fixed #25185 -- Added support for functools.partial serialization in migrations
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.9.txt2
-rw-r--r--docs/topics/migrations.txt6
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index b7863bab03..b14a4040d8 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -385,6 +385,8 @@ Migrations
:djadminopt:`migrate --fake-initial <--fake-initial>` to more easily detect
initial migrations.
+* Added support for serialization of ``functools.partial`` objects.
+
Models
^^^^^^
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index f979030fb3..c656e56db5 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -652,11 +652,17 @@ Django can serialize the following:
- ``datetime.date``, ``datetime.time``, and ``datetime.datetime`` instances
(include those that are timezone-aware)
- ``decimal.Decimal`` instances
+- ``functools.partial`` instances which have serializable ``func``, ``args``,
+ and ``keywords`` values.
- 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)
- Anything with a custom ``deconstruct()`` method (:ref:`see below <custom-deconstruct-method>`)
+.. versionchanged:: 1.9
+
+ Serialization support for `functools.partial` was added.
+
Django can serialize the following on Python 3 only:
- Unbound methods used from within the class body (see below)