I don't think that'll work. The function will be called directly when evaluating urls, and the result stored in urlconf cache, so you'll never be able to switch the waffle back without restarting the server.

If we truly want to be able to switch it we need a different kind of wrapper function, that is only evaluated when the view is called.