mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
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.
This commit is contained in:
committed by
Tim Graham
parent
f9c70bb3a1
commit
8f30556329
@@ -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
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user