diff options
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/models.py | 2 | ||||
-rw-r--r-- | yaksh/views.py | 2 |
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') |