summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorCruiseDevice2021-02-26 12:54:37 +0530
committerCruiseDevice2021-02-26 12:54:37 +0530
commit2d46e6799672cc133829ab72a88c645e54087d98 (patch)
tree9198877965649c90d81c7a26383be6bff8b72912 /yaksh
parent3e23a631e9c8e25fd13c7f1f8b0fed54d0c34b8f (diff)
downloadonline_test-2d46e6799672cc133829ab72a88c645e54087d98.tar.gz
online_test-2d46e6799672cc133829ab72a88c645e54087d98.tar.bz2
online_test-2d46e6799672cc133829ab72a88c645e54087d98.zip
Resolve comments
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index b80f98c..ca0f2d8 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -121,8 +121,8 @@ MOD_GROUP_NAME = 'moderator'
def get_assignment_dir(instance, filename):
- folder = str(instance.answer_paper.course.id)
- sub_folder = str(instance.answer_paper.question_paper.quiz.id)
+ folder = str(instance.answer_paper.course_id)
+ sub_folder = str(instance.answer_paper.question_paper.quiz_id)
user = instance.answer_paper.user.username
return os.sep.join((folder, sub_folder, user,
str(instance.assignmentQuestion.id),