Refs #28677 -- Doc'd that on_delete is required in migrations.

This commit is contained in:
Tim Graham 2017-10-03 09:42:05 -04:00
parent 4e725c647f
commit 491eb56fd4
1 changed files with 3 additions and 2 deletions

View File

@ -681,8 +681,9 @@ these features.
* ``Field.rel`` and ``Field.remote_field.to`` are removed.
* The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` are now
required.
* The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` is now
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.