aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/route_manager.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-15 14:55:26 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-15 14:55:26 +0100
commit84820fb712eece3d99d0ff3b5af474165703fcbe (patch)
tree04dee49b72c8ee57a646e2a6d41565a37fda4cf9 /pysite/route_manager.py
parentFix editing wiki in debug mode (diff)
Add RedirectView class for views that only redirect elsewhere
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r--pysite/route_manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py
index 764049cd..ef992113 100644
--- a/pysite/route_manager.py
+++ b/pysite/route_manager.py
@@ -8,7 +8,7 @@ from flask_dance.contrib.discord import make_discord_blueprint
from flask_sockets import Sockets
from gunicorn_config import _when_ready as when_ready
-from pysite.base_route import APIView, BaseView, ErrorView, RouteView, TemplateView
+from pysite.base_route import APIView, BaseView, ErrorView, RouteView, TemplateView, RedirectView
from pysite.constants import (
CSRF, DEBUG_MODE, DISCORD_OAUTH_AUTHORIZED, DISCORD_OAUTH_ID, DISCORD_OAUTH_REDIRECT,
DISCORD_OAUTH_SCOPE, DISCORD_OAUTH_SECRET, PREFERRED_URL_SCHEME)
@@ -132,6 +132,7 @@ class RouteManager:
cls is not APIView and
cls is not WS and
cls is not TemplateView and
+ cls is not RedirectView and
(
BaseView in cls.__mro__ or
WS in cls.__mro__