Ticket #15776: 15776.deletion_order.2.diff
File 15776.deletion_order.2.diff, 668 bytes (added by , 14 years ago) |
---|
-
django/db/models/deletion.py
99 99 # Nullable relationships can be ignored -- they are nulled out before 100 100 # deleting, and therefore do not affect the order in which objects have 101 101 # to be deleted. 102 if new_objs andsource is not None and not nullable:102 if source is not None and not nullable: 103 103 if reverse_dependency: 104 104 source, model = model, source 105 105 self.dependencies.setdefault(source, set()).add(model)