refactoring
This commit is contained in:
parent
8f9bd085bd
commit
0025754447
@ -14,15 +14,6 @@ class HomeView(TemplateView):
|
|||||||
return context
|
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):
|
class OverviewView(TemplateView):
|
||||||
template_name = "main/overview.html"
|
template_name = "main/overview.html"
|
||||||
|
|
||||||
@ -45,3 +36,13 @@ class UserProfileView(TemplateView):
|
|||||||
context = super(UserProfileView, self).get_context_data(*args, **kwargs)
|
context = super(UserProfileView, self).get_context_data(*args, **kwargs)
|
||||||
context['nav_user_profile'] = True
|
context['nav_user_profile'] = True
|
||||||
return context
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user