mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #16508 -- Renamed the current "virtual" fields to "private".
The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation.
This commit is contained in:
parent
47fbbc33de
commit
c339a5a6f7
14 changed files with 86 additions and 39 deletions
|
@ -150,6 +150,12 @@ details on these changes.
|
|||
* Using ``User.is_authenticated()`` and ``User.is_anonymous()`` as methods
|
||||
will no longer be supported.
|
||||
|
||||
* The private attribute ``virtual_fields`` of ``Model._meta`` will be removed.
|
||||
|
||||
* The private keyword arguments ``virtual_only`` in
|
||||
``Field.contribute_to_class()`` and ``virtual`` in
|
||||
``Model._meta.add_field()`` will be removed.
|
||||
|
||||
.. _deprecation-removed-in-1.10:
|
||||
|
||||
1.10
|
||||
|
|
|
@ -921,6 +921,14 @@ Miscellaneous
|
|||
|
||||
* The template ``Context.has_key()`` method is deprecated in favor of ``in``.
|
||||
|
||||
* The private attribute ``virtual_fields`` of ``Model._meta`` is
|
||||
deprecated in favor of ``private_fields``.
|
||||
|
||||
* The private keyword arguments ``virtual_only`` in
|
||||
``Field.contribute_to_class()`` and ``virtual`` in
|
||||
``Model._meta.add_field()`` are deprecated in favor of ``private_only``
|
||||
and ``private``, respectively.
|
||||
|
||||
.. _removed-features-1.10:
|
||||
|
||||
Features removed in 1.10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue