Update docs to be more clear about nested classes (refs #23418)

This commit is contained in:
Andrew Godwin 2014-09-05 14:58:44 -07:00
parent 5c5011ce68
commit 45768e6b72
1 changed files with 3 additions and 2 deletions

View File

@ -543,8 +543,8 @@ Django can serialize the following:
- ``datetime.date``, ``datetime.time``, and ``datetime.datetime`` instances - ``datetime.date``, ``datetime.time``, and ``datetime.datetime`` instances
- ``decimal.Decimal`` instances - ``decimal.Decimal`` instances
- Any Django field - Any Django field
- Any function or method reference (e.g. ``datetime.datetime.today``) - Any function or method reference (e.g. ``datetime.datetime.today``) (must be in module's top-level scope)
- Any class reference - Any class reference (must be in module's top-level scope)
- Anything with a custom ``deconstruct()`` method (:ref:`see below <custom-deconstruct-method>`) - Anything with a custom ``deconstruct()`` method (:ref:`see below <custom-deconstruct-method>`)
Django can serialize the following on Python 3 only: 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: Django cannot serialize:
- Nested classes
- Arbitrary class instances (e.g. ``MyClass(4.3, 5.7)``) - Arbitrary class instances (e.g. ``MyClass(4.3, 5.7)``)
- Lambdas - Lambdas