mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Refs #27910 -- Doc'd support for enumeration types serialization in migrations.
This commit is contained in:
parent
bc46e386c7
commit
aad46ee274
1 changed files with 1 additions and 0 deletions
|
|
@ -678,6 +678,7 @@ Django can serialize the following:
|
|||
- :func:`functools.partial` and :class:`functools.partialmethod` instances
|
||||
which have serializable ``func``, ``args``, and ``keywords`` values.
|
||||
- ``LazyObject`` instances which wrap a serializable value.
|
||||
- Enumeration types (e.g. ``TextChoices`` or ``IntegerChoices``) instances.
|
||||
- Any Django field
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue