This runs reverse on the user-given string from the `next` parameter, but the issue in question was saying that the setting `LOGIN_REDIRECT_URL` was not being passed through reverse. In fact, we probably don't want the user input to be able to get run through reverse.

This code should probably be in the `success_url` property instead.