Ticket #15776: 15776.deletion_order.2.diff

File 15776.deletion_order.2.diff, 668 bytes (added by Johannes Dollinger, 14 years ago)
  • django/db/models/deletion.py

     
    9999        # Nullable relationships can be ignored -- they are nulled out before
    100100        # deleting, and therefore do not affect the order in which objects have
    101101        # to be deleted.
    102         if new_objs and source is not None and not nullable:
     102        if source is not None and not nullable:
    103103            if reverse_dependency:
    104104                source, model = model, source
    105105            self.dependencies.setdefault(source, set()).add(model)
Back to Top