from django.views.generic import RedirectView


class RouteRedirectView(RedirectView):
    """Redirect to the target Route."""
    permanent = False  # Set to django 1.9's default to avoid RemovedInDjango19Warning

    def get_redirect_url(self, *args, **kwargs):
        """
        Return the route's target url.

        Save the route's redirect type for use by RedirectView.
        """
        redirect = kwargs['route']
        self.permanent = redirect.permanent
        return redirect.target.url


class URLRedirectView(RedirectView):
    """Redirect to a URLRedirect Route's target URL."""
    permanent = False  # Set to django 1.9's default to avoid RemovedInDjango19Warning

    def get_redirect_url(self, *args, **kwargs):
        """
        Return the target url.

        Save the route's redirect type for use by RedirectView.
        """
        redirect = kwargs['route']
        self.permanent = redirect.permanent
        return redirect.target

@@ -237,32 +237,39 @@
 url(self, *args,
+ route,
  **kwargs):%0A    
@@ -256,32 +256,32 @@
 ute, **kwargs):%0A
-
         %22%22%22%0A    
@@ -396,43 +396,8 @@
 %22%22%22%0A
-        redirect = kwargs%5B'route'%5D%0A
     
@@ -410,39 +410,36 @@
 lf.permanent = r
-edirect
+oute
 .permanent%0A     
@@ -445,31 +445,28 @@
     return r
-edirect
+oute
 .target.url%0A
@@ -685,16 +685,23 @@
 , *args,
+ route,
  **kwarg
@@ -828,43 +828,8 @@
 %22%22%22%0A
-        redirect = kwargs%5B'route'%5D%0A
     
@@ -850,23 +850,20 @@
 nent = r
-edirect
+oute
 .permane
@@ -881,23 +881,20 @@
 return r
-edirect
+oute
 .target%0A

Use explicit kwarg over kwargs dictionary access