summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichal Petrucha <michal.petrucha@koniiiik.org>2016-03-20 18:10:55 +0100
committerTim Graham <timograham@gmail.com>2016-04-13 10:10:53 -0400
commitc339a5a6f72690cd90d5a653dc108fbb60274a20 (patch)
tree41b1deef69d5c35b2fc78c67a31d1e647774ae76 /docs
parent47fbbc33de805c803c39483344854caa2890c32c (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt6
-rw-r--r--docs/releases/1.10.txt8
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index d428f414f7..fee9c8cef7 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -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
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt
index 463cd4706e..c06602dc95 100644
--- a/docs/releases/1.10.txt
+++ b/docs/releases/1.10.txt
@@ -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