def mib_upload_pre_delete(sender, instance=None, **kwargs): """Removes the data objects this mib added to the system""" if instance: dispatcher.dispatch_job('mib_disintegration', '%s' % instance.pk)
def mib_upload_post_save(sender, instance=None, created=None, **kwargs): """Adds new data objects to the system which this mib contains""" if instance and created: dispatcher.dispatch_job('mib_integration', '%s' % instance.pk)