class UserView(LoginRequiredAutoLogoutView):
template_name = "manageuserview.html"
def dispatch(self, *args, **kwargs):
- return super(AccountView, self).dispatch(*args, **kwargs)
+ return super(UserView, self).dispatch(*args, **kwargs)
def get_context_data(self, **kwargs):
platform_list = [{'platform_no_access': t[0]}
for t in itertools.izip_longest(total_platform_list)]
- context = super(AccountView, self).get_context_data(**kwargs)
+ context = super(UserView, self).get_context_data(**kwargs)
context['principal_acc'] = principal_acc_list
context['ref_acc'] = ref_acc_list
context['platform_list'] = platform_list
#url(r'^my_account/?$', MyAccountView.as_view(), name='my_account'),
url(r'^account/?$', AccountView.as_view(), name='account'),
url(r'^admin/?$', AdminView.as_view(), name='user_list'),
- url(r'^user/(?P<email>[\w\s.@\-]+)/?$', AccountView.as_view(), name='account'),
+ url(r'^user/(?P<email>[\w\s.@\-]+)/?$', UserView.as_view(), name='account'),
url(r'^user/user_process/?$', user_process),
url(r'^platforms/?$', PlatformsView.as_view(), name='platforms'),
url(r'^platform/(?P<platformname>[\w\.\-]+)/?$', PlatformView.as_view(), name='platform'),