diff options
author | adityacp | 2020-04-08 15:55:59 +0530 |
---|---|---|
committer | adityacp | 2020-04-08 15:55:59 +0530 |
commit | ce3eb1dbbd924003489d01f4e98aba841cd803c0 (patch) | |
tree | 27bdd5eaee82c34094a70a9c5b35626a8d45315d /yaksh/models.py | |
parent | 4802a89acef7567c6a8861daab60924fe862367f (diff) | |
download | online_test-ce3eb1dbbd924003489d01f4e98aba841cd803c0.tar.gz online_test-ce3eb1dbbd924003489d01f4e98aba841cd803c0.tar.bz2 online_test-ce3eb1dbbd924003489d01f4e98aba841cd803c0.zip |
Change templates, views, forms, models
- Allow to test, download and delete single question
- Fix pagination for searching and filtering questions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
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 |