From af412314eaba6a955b364da2ff7e4dbfb8eb7003 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 15 May 2018 14:40:11 +0100 Subject: Add TemplateView class for views that only render a template --- pysite/route_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pysite/route_manager.py') diff --git a/pysite/route_manager.py b/pysite/route_manager.py index a666ce09..764049cd 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 +from pysite.base_route import APIView, BaseView, ErrorView, RouteView, TemplateView 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) @@ -131,6 +131,7 @@ class RouteManager: cls is not RouteView and cls is not APIView and cls is not WS and + cls is not TemplateView and ( BaseView in cls.__mro__ or WS in cls.__mro__ -- cgit v1.2.3