mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #20978 -- Made deletion.SET_NULL more friendly for MigrationWriter.serialize.
This commit is contained in:
parent
0ac7cc3265
commit
5df8f749e6
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ def SET(value):
|
||||||
return set_on_delete
|
return set_on_delete
|
||||||
|
|
||||||
|
|
||||||
SET_NULL = SET(None)
|
def SET_NULL(collector, field, sub_objs, using):
|
||||||
|
collector.add_field_update(field, None, sub_objs)
|
||||||
|
|
||||||
|
|
||||||
def SET_DEFAULT(collector, field, sub_objs, using):
|
def SET_DEFAULT(collector, field, sub_objs, using):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue