summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2016-11-18 12:45:59 +0530
committeradityacp2016-11-18 12:45:59 +0530
commit70a96748e8ad240c0038f657d292a2e000355ace (patch)
tree534699bb33cb39032f273e57f3137dd43f2607eb /yaksh/models.py
parent70c28a87d0768df6d68e7098741c49f68a11ec50 (diff)
downloadonline_test-70a96748e8ad240c0038f657d292a2e000355ace.tar.gz
online_test-70a96748e8ad240c0038f657d292a2e000355ace.tar.bz2
online_test-70a96748e8ad240c0038f657d292a2e000355ace.zip
changed assignment upload directory
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 fbc527e..f048126 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -65,7 +65,7 @@ test_status = (
)
def get_assignment_dir(instance, filename):
- return '%s/%s' % (instance.user.roll_number, instance.assignmentQuestion.id)
+ return '%s/%s/%s' % (instance.user.user, instance.assignmentQuestion.id, filename)
def get_model_class(model):
ctype = ContentType.objects.get(app_label="yaksh", model=model)