@receiver(pre_delete, sender=Microsite)
def on_microsite_deleted(sender, instance, **kwargs):
 _make_archive_copy(instance)

@ receiver ( pre_delete , sender = Microsite ) def on_microsite_deleted ( sender , instance , ** kwargs ) : _make_archive_copy ( instance )
archive the exam attempt when the item is about to be deleted make a clone and populate in the history table .