diff options
author | Prabhu Ramachandran | 2017-02-23 11:55:53 +0530 |
---|---|---|
committer | GitHub | 2017-02-23 11:55:53 +0530 |
commit | b001bc98db69e1ef1926b0f2103bf5a291682f93 (patch) | |
tree | 1e5327b9b7434e0e36fd5b70bf9469e9b71c5919 /yaksh/views.py | |
parent | b3a47d8d4b90b4540876d3dbd1aa0c9c334d84e8 (diff) | |
parent | a8392a2a9e62264af8ea096a4a5e99be6cd1b289 (diff) | |
download | online_test-b001bc98db69e1ef1926b0f2103bf5a291682f93.tar.gz online_test-b001bc98db69e1ef1926b0f2103bf5a291682f93.tar.bz2 online_test-b001bc98db69e1ef1926b0f2103bf5a291682f93.zip |
Merge pull request #227 from ankitjavalkar/fix-dashboard-logout
Add a new view for logout
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index ae29508..74c409c 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -104,6 +104,13 @@ def user_register(request): context_instance=ci) +def user_logout(request): + """Show a page to inform user that the quiz has been compeleted.""" + logout(request) + context = {'message': "You have been logged out successfully"} + return my_render_to_response('yaksh/complete.html', context) + + @login_required def quizlist_user(request, enrolled=None): """Show All Quizzes that is available to logged-in user.""" |