summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi.kaariainen@thl.fi>2015-02-26 16:19:17 +0200
committerTim Graham <timograham@gmail.com>2015-03-25 08:16:12 -0400
commit8f30556329b64005d63b66859a74752a0b261315 (patch)
tree73b5ac8d3be457f8061aa270437c9a957d2d622c /docs
parentf9c70bb3a1239ed1e04a769fd323286a5b1fde20 (diff)
Renamed Field.rel attribute to remote_field
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt4
-rw-r--r--docs/releases/1.9.txt9
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index db351ede16..abce521d75 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -26,6 +26,10 @@ details on these changes.
compatibility layer which allows absolute URLs to be considered equal to
relative ones when the path is identical will also be removed.
+* ``Field.rel`` will be removed.
+
+* ``Field.remote_field.to`` attribute will be removed.
+
.. _deprecation-removed-in-2.0:
2.0
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index 10a4db5518..9f15e9151a 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -348,6 +348,15 @@ versions:
Its parsing caused bugs with the current syntax, so support for the old syntax
will be removed in Django 2.0 following an accelerated deprecation.
+``Field.rel`` changes
+~~~~~~~~~~~~~~~~~~~~~
+
+``Field.rel`` and its methods and attributes have changed to match the related
+fields API. The ``Field.rel`` attribute is renamed to ``remote_field`` and many
+of its methods and attributes are either changed or renamed.
+
+The aim of these changes is to provide a documented API for relation fields.
+
Miscellaneous
~~~~~~~~~~~~~