Fixed #21587 -- Added a deprecation warning for RedirectView.permanent.

https://code.djangoproject.com/ticket/21587
Use of the mixin isn't ideal here since there a lot of unrelated tests which aren't affected. If we have some other deprecation that affects these tests, we might miss updating them.