Projet

Général

Profil

0001-move-oauth2-templates-in-a-fargo-subdirectory-22920.patch

Frédéric Péters, 30 mars 2018 12:47

Télécharger (1,7 ko)

Voir les différences:

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%)
fargo/oauth2/views.py
58 58

  
59 59

  
60 60
class OAuth2AuthorizeView(FormView):
61
    template_name = 'oauth2/authorize.html'
61
    template_name = 'fargo/oauth2/authorize.html'
62 62
    form_class = OAuth2AuthorizeForm
63 63
    success_url = '/'
64 64

  
......
193 193

  
194 194

  
195 195
class OAuth2AuthorizePutView(TemplateView):
196
    template_name = 'oauth2/confirm.html'
196
    template_name = 'fargo/oauth2/confirm.html'
197 197

  
198 198
    def redirect(self, **kwargs):
199 199
        '''Return to requester'''