Skip to content

Commit

Permalink
[3.0.x] Refs #27910 -- Doc'd support for enumeration types serializat…
Browse files Browse the repository at this point in the history
…ion in migrations.

Backport of aad46ee from master
  • Loading branch information
felixxm committed Sep 24, 2019
1 parent 0098f26 commit fcaaff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/topics/migrations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcaaff9

Please sign in to comment.