diff options
author | CruiseDevice | 2021-03-04 16:49:55 +0530 |
---|---|---|
committer | CruiseDevice | 2021-03-04 16:49:55 +0530 |
commit | ccc578beff8363ea19826d6c621dafabe210531f (patch) | |
tree | 9e3e462e1d5aed86d4f81be87d55fe6e3e62562e /yaksh/models.py | |
parent | 085b1fae43a16cff87e1ab0cf3730e84d4943442 (diff) | |
download | online_test-ccc578beff8363ea19826d6c621dafabe210531f.tar.gz online_test-ccc578beff8363ea19826d6c621dafabe210531f.tar.bz2 online_test-ccc578beff8363ea19826d6c621dafabe210531f.zip |
Minor Change in get_assignment_dir
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 30c69c3..e88a9e4 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -123,8 +123,8 @@ MOD_GROUP_NAME = 'moderator' def get_assignment_dir(instance, filename): course = instance.answer_paper.course quiz = instance.answer_paper.question_paper.quiz - folder = f'{course.name.replace(" ", "_")}_{course.id}' - sub_folder = f'{quiz.description.replace(" ","_")}_{quiz.id}' + folder = f'Course_{course.id}' + sub_folder = f'Quiz_{quiz.id}' user = instance.answer_paper.user.username return os.sep.join((folder, sub_folder, user, str(instance.assignmentQuestion.id), |