summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2023-08-23 10:04:37 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-12 11:51:01 +0200
commite15174983adf0ee5caa1b678c94bb1c6fbd40402 (patch)
tree400784e45cb70992896f5ff1f3f8be58255fb9a3 /docs
parent8aa83464664938367a425f011a7df5663a955d09 (diff)
Renamed ChoicesMeta to ChoicesType.
This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed EnumMeta to EnumType. While the former is still available as an alias of the latter for now, let's prefer the canonical name for this. Check out https://docs.python.org/3/library/enum.html#enum.EnumType
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt3
-rw-r--r--docs/releases/5.0.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 98b027cd1a..a400ed97f9 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -42,6 +42,9 @@ details on these changes.
* ``BaseDatabaseOperations.field_cast_sql()`` will be removed.
+* The ``ChoicesMeta`` alias to ``django.db.models.enums.ChoicesType`` will be
+ removed.
+
.. _deprecation-removed-in-5.1:
5.1
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt
index 2e23e40cbf..10ab706645 100644
--- a/docs/releases/5.0.txt
+++ b/docs/releases/5.0.txt
@@ -685,6 +685,9 @@ Miscellaneous
``BuiltinLookup.process_lhs()`` will no longer call ``field_cast_sql()``.
Third-party database backends should implement ``lookup_cast()`` instead.
+* The ``django.db.models.enums.ChoicesMeta`` metaclass is renamed to
+ ``ChoicesType``.
+
.. _`oracledb`: https://oracle.github.io/python-oracledb/
Features removed in 5.0