diff options
author | adityacp | 2020-02-19 12:13:38 +0530 |
---|---|---|
committer | adityacp | 2020-02-19 12:15:43 +0530 |
commit | fcfd868e44f0c768d05ef0dd58c72e46f9cbee61 (patch) | |
tree | 8909446448aabd1c0ca26807afec4fff9ce0cd3c /yaksh/models.py | |
parent | f2d1d8fe76109a5b7c53e68de2bd86230874ba90 (diff) | |
download | online_test-fcfd868e44f0c768d05ef0dd58c72e46f9cbee61.tar.gz online_test-fcfd868e44f0c768d05ef0dd58c72e46f9cbee61.tar.bz2 online_test-fcfd868e44f0c768d05ef0dd58c72e46f9cbee61.zip |
Fix pep style and add test case in test_models
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index e9c025f..3894165 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -317,7 +317,8 @@ class Lesson(models.Model): lesson_file.file.name))) zip_file.writestr(filename, lesson_file.file.read()) unit_file_path = os.sep.join(( - path, "templates", "yaksh", "download_course_templates", "unit.html" + path, "templates", "yaksh", "download_course_templates", + "unit.html" )) lesson_data = {"course": course, "module": module, "lesson": self, "next_unit": next_unit, @@ -577,7 +578,8 @@ class Quiz(models.Model): course_name, module_name, quiz_name )) unit_file_path = os.sep.join(( - path, "templates", "yaksh", "download_course_templates", "quiz.html" + path, "templates", "yaksh", "download_course_templates", + "quiz.html" )) quiz_data = {"course": course, "module": module, "quiz": self, "next_unit": next_unit} @@ -813,7 +815,8 @@ class LearningModule(models.Model): path) module_file_path = os.sep.join(( - path, "templates", "yaksh", "download_course_templates", "module.html" + path, "templates", "yaksh", "download_course_templates", + "module.html" )) module_data = {"course": course, "module": self, "units": units} write_templates_to_zip(zip_file, module_file_path, module_data, |