From 6dc77e9f740e1eae48176e661af87682a235ff16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 30 Mar 2018 12:46:19 +0200 Subject: [PATCH] move oauth2 templates in a fargo/ subdirectory (#22920) --- fargo/oauth2/views.py | 4 ++-- fargo/templates/{ => fargo}/oauth2/authorize.html | 0 fargo/templates/{ => fargo}/oauth2/confirm.html | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename fargo/templates/{ => fargo}/oauth2/authorize.html (100%) rename fargo/templates/{ => fargo}/oauth2/confirm.html (100%) diff --git a/fargo/oauth2/views.py b/fargo/oauth2/views.py index 55a2c97..d2b9428 100644 --- a/fargo/oauth2/views.py +++ b/fargo/oauth2/views.py @@ -58,7 +58,7 @@ class OAUTH2APIViewMixin(APIView): class OAuth2AuthorizeView(FormView): - template_name = 'oauth2/authorize.html' + template_name = 'fargo/oauth2/authorize.html' form_class = OAuth2AuthorizeForm success_url = '/' @@ -193,7 +193,7 @@ put_document = PutDocumentAPIView.as_view() class OAuth2AuthorizePutView(TemplateView): - template_name = 'oauth2/confirm.html' + template_name = 'fargo/oauth2/confirm.html' def redirect(self, **kwargs): '''Return to requester''' diff --git a/fargo/templates/oauth2/authorize.html b/fargo/templates/fargo/oauth2/authorize.html similarity index 100% rename from fargo/templates/oauth2/authorize.html rename to fargo/templates/fargo/oauth2/authorize.html diff --git a/fargo/templates/oauth2/confirm.html b/fargo/templates/fargo/oauth2/confirm.html similarity index 100% rename from fargo/templates/oauth2/confirm.html rename to fargo/templates/fargo/oauth2/confirm.html -- 2.16.3