def reindex_mymodel(sender, instance): ProjectIndex.update_object(ProjectIndex(), instance)
def delete_mymodel(sender, instance): ProjectIndex.remove_object(ProjectIndex(), instance)