Commit 5df8f749 authored by Loic Bistuer's avatar Loic Bistuer Committed by Tim Graham
Browse files

Fixed #20978 -- Made deletion.SET_NULL more friendly for MigrationWriter.serialize.

parent 0ac7cc32
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ def SET(value):
    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):