def apphook_post_delete_page_checker(instance, **kwargs):
 if instance.application_urls:
  request_finished.connect(trigger_restart, dispatch_uid=DISPATCH_UID)

def apphook_post_delete_page_checker ( instance , ** kwargs ) : if instance . application_urls : request_finished . connect ( trigger_restart , dispatch_uid = DISPATCH_UID )
check if this was an apphook .