from django.views.generic.base import RedirectView


class RedirectOldURL(RedirectView):
    permanent = True
    query_string = True


class RedirectOldApp(RedirectOldURL):
    url = "/%(app_base_url)s/%(path)s"
