Ticket #4879: post_create_patch.diff
File post_create_patch.diff, 870 bytes (added by , 17 years ago) |
---|
-
django/db/models/base.py
256 256 transaction.commit_unless_managed() 257 257 258 258 # Run any post-save hooks. 259 if not record_exists: 260 dispatcher.send(signal=signals.post_create, sender=self.__class__, instance=self) 259 261 dispatcher.send(signal=signals.post_save, sender=self.__class__, instance=self) 260 262 261 263 save.alters_data = True -
django/db/models/signals.py
5 5 6 6 pre_save = object() 7 7 post_save = object() 8 post_create = object() 8 9 9 10 pre_delete = object() 10 11 post_delete = object()