diff options
author | ankitjavalkar | 2017-11-07 15:49:35 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-03-06 11:39:06 +0530 |
commit | 7a892b8c664a69bd054efc6c662281e839546b7d (patch) | |
tree | 426fc4d65d62e99c9609c1fe0b32c54bae134571 /yaksh/views.py | |
parent | 91fa9c6a40e16f43d935db9641b6833605afc1e8 (diff) | |
download | online_test-7a892b8c664a69bd054efc6c662281e839546b7d.tar.gz online_test-7a892b8c664a69bd054efc6c662281e839546b7d.tar.bz2 online_test-7a892b8c664a69bd054efc6c662281e839546b7d.zip |
- Change function names and urls to 'preview_questionpaper'
- Add snippet to the questionpaper preview
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 0dab227..94335a2 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -2749,7 +2749,7 @@ def _update_unit_status(course_id, user, unit): @login_required @email_verified -def download_questionpaper(request, questionpaper_id): +def preview_questionpaper(request, questionpaper_id): user = request.user if not is_moderator(user): raise Http404('You are not allowed to view this page!') @@ -2760,5 +2760,5 @@ def download_questionpaper(request, questionpaper_id): } return my_render_to_response( - 'yaksh/download_questionpaper.html', context + 'yaksh/preview_questionpaper.html', context ) |