Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)