Ticket #14234: dj14234-save-base.diff

File dj14234-save-base.diff, 523 bytes (added by Jeremy Dunck, 14 years ago)

fast/hacky

  • django/db/models/base.py

    diff --git a/django/db/models/base.py b/django/db/models/base.py
    index b3deda1..4d917b3 100644
    a b class Model(object):  
    540540        if origin and not meta.auto_created:
    541541            signals.post_save.send(sender=origin, instance=self,
    542542                created=(not record_exists), raw=raw, using=using)
    543 
     543        self._adding = False
    544544    save_base.alters_data = True
    545545
    546546    def _collect_sub_objects(self, seen_objs, parent=None, nullable=False):
Back to Top