From 4ba898299583cfdccc7160893e8f3b5aba90db92 Mon Sep 17 00:00:00 2001 From: David Miller Date: Wed, 3 Oct 2018 15:48:01 +0100 Subject: [PATCH] Remove the AccountDetailTemplateView - this only existed because of a discrepancy between the template location and the URL. --- opal/static/js/opal/routes.js | 2 +- opal/urls.py | 3 --- opal/views.py | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/opal/static/js/opal/routes.js b/opal/static/js/opal/routes.js index 6462ffb3d..b9c64b1da 100644 --- a/opal/static/js/opal/routes.js +++ b/opal/static/js/opal/routes.js @@ -41,7 +41,7 @@ }) .when('/account', { controller: 'AccountCtrl', - templateUrl: '/accounts/templates/account_detail.html' + templateUrl: '/accounts/account_detail.html' }) .otherwise({redirectTo: '/'}); diff --git a/opal/urls.py b/opal/urls.py index d269f23e3..cbd6794db 100644 --- a/opal/urls.py +++ b/opal/urls.py @@ -28,9 +28,6 @@ 'password_change_form': ChangePasswordForm}, name='change-password'), - url(r'^accounts/templates/account_detail.html', - views.AccountDetailTemplateView.as_view()), - url(r'^accounts/banned', views.BannedView.as_view(), name='banned'), url(r'^admin/', include(admin.site.urls)), diff --git a/opal/views.py b/opal/views.py index f1f39188a..fa7efe17a 100644 --- a/opal/views.py +++ b/opal/views.py @@ -243,10 +243,6 @@ def get_template_names(self): return [template_name] -class AccountDetailTemplateView(TemplateView): - template_name = 'accounts/account_detail.html' - - class BannedView(TemplateView): template_name = 'accounts/banned.html'