summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-04-21 12:51:22 +0530
committerGitHub2020-04-21 12:51:22 +0530
commit01c9faa0abeedb748600c35a35bd6cf8124bd64d (patch)
treeb35aaa9c27b9b1499d5dc4b8166209edcbfde84b /yaksh/models.py
parent4802a89acef7567c6a8861daab60924fe862367f (diff)
parent6ac89a48fcd349dcc9d097cb76fe9eda934ad19d (diff)
downloadonline_test-01c9faa0abeedb748600c35a35bd6cf8124bd64d.tar.gz
online_test-01c9faa0abeedb748600c35a35bd6cf8124bd64d.tar.bz2
online_test-01c9faa0abeedb748600c35a35bd6cf8124bd64d.zip
Merge pull request #688 from adityacp/fix_show_all_questions
Fix search and filters in questions and courses page
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 52a0414..5d4d453 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1385,7 +1385,7 @@ class Question(models.Model):
testcases.append(case.get_field_value())
q_dict['testcase'] = testcases
q_dict['files'] = file_names
- q_dict['tags'] = [tags.tag.name for tags in q_dict['tags']]
+ q_dict['tags'] = [tag.name for tag in q_dict['tags']]
questions_dict.append(q_dict)
question._add_yaml_to_zip(zip_file, questions_dict)
return zip_file_name