From 00257544478012f31cf468a7ab044e008619c9f9 Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Sat, 28 Sep 2013 16:56:01 +0200 Subject: [PATCH] refactoring --- nsupdate/main/views.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index cede9c6..c93c973 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -14,15 +14,6 @@ class HomeView(TemplateView): return context -class PasswordChangeView(TemplateView): - template_name = "registration/password_change.html" - - def get_context_data(self, *args, **kwargs): - context = super(PasswordChangeView, self).get_context_data(*args, **kwargs) - context['nav_change_password'] = True - return context - - class OverviewView(TemplateView): template_name = "main/overview.html" @@ -45,3 +36,13 @@ class UserProfileView(TemplateView): context = super(UserProfileView, self).get_context_data(*args, **kwargs) context['nav_user_profile'] = True return context + + +class PasswordChangeView(TemplateView): + template_name = "registration/password_change.html" + + def get_context_data(self, *args, **kwargs): + context = super(PasswordChangeView, self).get_context_data(*args, **kwargs) + context['nav_change_password'] = True + return context +