Generalize 'redirect_target' in snippets to a callable 'redirect_to'.

The callable takes 2 positional arguments: app name and model name.
It returns a url.