diff options
author | adityacp | 2016-07-11 16:42:44 +0530 |
---|---|---|
committer | adityacp | 2016-07-28 15:56:06 +0530 |
commit | 80453af850b5080a43eb309b50151ecc8e5f6578 (patch) | |
tree | 6189aacfd2fc232d2fbeca5bb697f450b0be8ddb /yaksh/views.py | |
parent | d5c7cfbf8b7f81f2cfde404602bf4e5026583bd9 (diff) | |
download | online_test-80453af850b5080a43eb309b50151ecc8e5f6578.tar.gz online_test-80453af850b5080a43eb309b50151ecc8e5f6578.tar.bz2 online_test-80453af850b5080a43eb309b50151ecc8e5f6578.zip |
changed extract and delete function names in views.py
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index b5de26d..33be86d 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -189,7 +189,7 @@ def edit_question(request, question_id=None): if remove_files_id: files = QuestionsFileUpload.objects.filter(id__in=remove_files_id) file = QuestionsFileUpload() - file.delete_selected_files(files) + file.delete_files(files) if request.method == "POST" and 'save_question' in request.POST: question_form = QuestionForm(request.POST, instance=question_instance) form = FileForm(request.POST, request.FILES) @@ -201,7 +201,7 @@ def edit_question(request, question_id=None): if extract_files_id: files = QuestionsFileUpload.objects.filter(id__in=extract_files_id) file = QuestionsFileUpload() - file.extract_files(files) + file.set_extract_status(files) if question_form.is_valid(): new_question = question_form.save(commit=False) test_case_type = question_form.cleaned_data.get('test_case_type') @@ -862,7 +862,7 @@ def show_all_questions(request): files = QuestionsFileUpload.objects.filter(question_id=question.id) if files: file = QuestionsFileUpload() - file.delete_all_files(files) + file.delete_files(files) questions.delete() if request.POST.get('upload') == 'upload': |