mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Tim Graham
parent
47fbbc33de
commit
c339a5a6f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user