diff options
author | ankitjavalkar | 2017-02-21 16:20:25 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-02-21 16:20:25 +0530 |
commit | a8392a2a9e62264af8ea096a4a5e99be6cd1b289 (patch) | |
tree | 10b8528ace158a8368e4ccba44d5da26c6b52b02 /yaksh/views.py | |
parent | ee83b9693075771dcba885bc380e20dfdd8289a1 (diff) | |
download | online_test-a8392a2a9e62264af8ea096a4a5e99be6cd1b289.tar.gz online_test-a8392a2a9e62264af8ea096a4a5e99be6cd1b289.tar.bz2 online_test-a8392a2a9e62264af8ea096a4a5e99be6cd1b289.zip |
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.""" |