From c339a5a6f72690cd90d5a653dc108fbb60274a20 Mon Sep 17 00:00:00 2001 From: Michal Petrucha Date: Sun, 20 Mar 2016 18:10:55 +0100 Subject: 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. --- docs/internals/deprecation.txt | 6 ++++++ docs/releases/1.10.txt | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'docs') 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 -- cgit v1.3