summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-09-05 14:58:44 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-09-05 15:00:01 -0700
commit45768e6b72607b4bc913358c560830454f3336a7 (patch)
treee516823090f51a502bea318359927cc401986cd0 /docs
parent5c5011ce6892392e6fd2d900ec87a6c5287ae711 (diff)
Update docs to be more clear about nested classes (refs #23418)
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/migrations.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 626790183b..b1531a54b9 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -543,8 +543,8 @@ Django can serialize the following:
- ``datetime.date``, ``datetime.time``, and ``datetime.datetime`` instances
- ``decimal.Decimal`` instances
- Any Django field
-- Any function or method reference (e.g. ``datetime.datetime.today``)
-- Any class reference
+- 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>`)
Django can serialize the following on Python 3 only:
@@ -553,6 +553,7 @@ Django can serialize the following on Python 3 only:
Django cannot serialize:
+- Nested classes
- Arbitrary class instances (e.g. ``MyClass(4.3, 5.7)``)
- Lambdas