'Signal handler to be called when a user ban is deleted.'

def on_ban_delete(self, **kwargs):

    instance = kwargs.get('instance', None)
    if (instance is not None):
        instance.user.is_active = True
        instance.user.save()
        self.invalidate_document_contribution(instance.user)
