On Thu, May 31, 2007 at 09:16:07AM +1200, Robert Coup wrote: > Ben Schwarze wrote: > > Due to this process, I was looking for a way fetch a signal after the > > creation of an object. > > Currently Django has the pre_save and post_save signals that will be > > send before and after saving the object. But there seems to be no way > > to determine whether an object has been just created or updated. > > > Why not connect to pre_save and check whether the primary key is None, > similar to the accepted way to check for creation if you override > Model.save()?
The most obvious reason, of course, is that you don't know at that point whether the save is successful or not. -Forest
signature.asc
Description: Digital signature