summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-11-03 17:20:23 +0530
committerGitHub2020-11-03 17:20:23 +0530
commit81f96a24954d375ab32ab8dfb1ee8aba299655c6 (patch)
treeadd26043d9c69cf50553b5eb45e8744618a4b607 /yaksh/views.py
parent602f88e334865c995d86a457acdca6cc43b354ef (diff)
parent81f04f1382b1416480ed0bf0e4018afcce4cfef4 (diff)
downloadonline_test-81f96a24954d375ab32ab8dfb1ee8aba299655c6.tar.gz
online_test-81f96a24954d375ab32ab8dfb1ee8aba299655c6.tar.bz2
online_test-81f96a24954d375ab32ab8dfb1ee8aba299655c6.zip
Merge pull request #785 from adityacp/multiple_ui_fixes
Multiple UI changes
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 69a7414..da5748b 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2987,19 +2987,6 @@ def add_module(request, course_id=None, module_id=None):
@login_required
@email_verified
-def preview_html_text(request):
- user = request.user
- if not is_moderator(user):
- raise Http404('You are not allowed to view this page!')
- response_kwargs = {}
- response_kwargs['content_type'] = 'application/json'
- request_data = json.loads(request.body.decode("utf-8"))
- html_text = get_html_text(request_data['description'])
- return HttpResponse(json.dumps({"data": html_text}), **response_kwargs)
-
-
-@login_required
-@email_verified
def get_next_unit(request, course_id, module_id, current_unit_id=None,
first_unit=None):
user = request.user