summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2016-11-18 14:26:08 +0530
committeradityacp2016-11-18 14:26:08 +0530
commit95c8c368d9f34cb05c5edd90f8697ec5d00c5a92 (patch)
treef097d00b3378a7948e6289cdce733a37198bee24
parent70a96748e8ad240c0038f657d292a2e000355ace (diff)
downloadonline_test-95c8c368d9f34cb05c5edd90f8697ec5d00c5a92.tar.gz
online_test-95c8c368d9f34cb05c5edd90f8697ec5d00c5a92.tar.bz2
online_test-95c8c368d9f34cb05c5edd90f8697ec5d00c5a92.zip
changed function name from set_hide_status to toggle_hide_status
-rw-r--r--yaksh/models.py2
-rw-r--r--yaksh/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index f048126..2018198 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -402,7 +402,7 @@ class FileUpload(models.Model):
self.extract = True
self.save()
- def set_hide_status(self):
+ def toggle_hide_status(self):
if self.hide:
self.hide = False
else:
diff --git a/yaksh/views.py b/yaksh/views.py
index 2eeef90..b6cf578 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -193,7 +193,7 @@ def edit_question(request, question_id=None):
if hide_files_id:
files = FileUpload.objects.filter(id__in=hide_files_id)
for file in files:
- file.set_hide_status()
+ file.toggle_hide_status()
if question_form.is_valid():
new_question = question_form.save(commit=False)
test_case_type = question_form.cleaned_data.get('test_case_type')