diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-09-05 14:58:44 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-09-05 15:37:53 -0700 |
| commit | e5cdfb151039cdd22a17480f0f1fb9ccbad5eb56 (patch) | |
| tree | 361bafa45cd0468fec6e0ef77d048961bd2d1cd9 | |
| parent | 5e2f336f69f21e12fbafe6f5a4c0493258547e8a (diff) | |
[1.7.x] Update docs to be more clear about nested classes (refs #23418)
| -rwxr-xr-x | docs/topics/migrations.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index cd03a2f840..461801fb34 100755 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -536,8 +536,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: @@ -546,6 +546,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 |
