[2.0.x] Refs #28677 -- Doc'd that on_delete is required in migrations.
Backport of 491eb56fd4
from master
This commit is contained in:
parent
5091bb6a07
commit
cfde4ac3e7
|
@ -681,8 +681,9 @@ these features.
|
||||||
|
|
||||||
* ``Field.rel`` and ``Field.remote_field.to`` are removed.
|
* ``Field.rel`` and ``Field.remote_field.to`` are removed.
|
||||||
|
|
||||||
* The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` are now
|
* The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` is now
|
||||||
required.
|
required in models and migrations. Consider squashing migrations so that you
|
||||||
|
have less of them to update.
|
||||||
|
|
||||||
* ``django.db.models.fields.add_lazy_relation()`` is removed.
|
* ``django.db.models.fields.add_lazy_relation()`` is removed.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue