mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Refs #28586 -- Split descriptor from GenericForeignKey.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
This makes GenericForeignKey more similar to other fields which act as descriptors, preparing it to add “fetcher protocol” support in a clear and consistent way.
This commit is contained in:
parent
762d3be8c5
commit
74a9c2711c
5 changed files with 60 additions and 38 deletions
|
|
@ -246,7 +246,8 @@ backends.
|
|||
Miscellaneous
|
||||
-------------
|
||||
|
||||
* ...
|
||||
* :class:`~django.contrib.contenttypes.fields.GenericForeignKey` now uses a
|
||||
separate descriptor class: the private ``GenericForeignKeyDescriptor``.
|
||||
|
||||
.. _deprecated-features-6.1:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue