[3.0.x] Refs #27910 -- Doc'd support for enumeration types serialization in migrations.
Backport of aad46ee274
from master
This commit is contained in:
parent
0098f26fdd
commit
fcaaff9862
|
@ -678,6 +678,7 @@ Django can serialize the following:
|
||||||
- :func:`functools.partial` and :class:`functools.partialmethod` instances
|
- :func:`functools.partial` and :class:`functools.partialmethod` instances
|
||||||
which have serializable ``func``, ``args``, and ``keywords`` values.
|
which have serializable ``func``, ``args``, and ``keywords`` values.
|
||||||
- ``LazyObject`` instances which wrap a serializable value.
|
- ``LazyObject`` instances which wrap a serializable value.
|
||||||
|
- Enumeration types (e.g. ``TextChoices`` or ``IntegerChoices``) instances.
|
||||||
- Any Django field
|
- Any Django field
|
||||||
- Any function or method reference (e.g. ``datetime.datetime.today``) (must be in module's top-level scope)
|
- Any function or method reference (e.g. ``datetime.datetime.today``) (must be in module's top-level scope)
|
||||||
- Unbound methods used from within the class body
|
- Unbound methods used from within the class body
|
||||||
|
|
Loading…
Reference in New Issue