mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[2.0.x] Refs #28677 -- Doc'd that on_delete is required in migrations.
Backport of 491eb56fd4 from master
			
			
This commit is contained in:
		| @@ -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. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user