def send_watcher_update(sender, created=False, instance=None, **kwargs): """ Send watchers of a given lot updates. """ if instance and created: notify_watchers(instance) if isinstance(instance, Note): new_note_notify_managers(instance)
def save(self, force_insert=False, force_update=False, commit=True): is_creating = False if not self.instance.id: is_creating = True organizer = super(self.__class__, self).save() if is_creating: new_organizer_notify_managers(organizer) notify_watchers(organizer)