Adjust redirect handling due to Django ticket #21177

Only Django 1.7 actually supports redirecting to relative URLs, even
though the docs have claimed it does since at least 1.5.