summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2021-01-25 10:54:25 +0530
committeradityacp2021-01-25 10:54:25 +0530
commitc474c68a2621e8c470ce2751103128fa793be62e (patch)
tree96ee60da7e4a27faa3772f234396e8c49a9fa7b9 /yaksh/models.py
parent419c66d29f20123d6f1e04072829973d84ff40c5 (diff)
downloadonline_test-c474c68a2621e8c470ce2751103128fa793be62e.tar.gz
online_test-c474c68a2621e8c470ce2751103128fa793be62e.tar.bz2
online_test-c474c68a2621e8c470ce2751103128fa793be62e.zip
Refactor code for download csv for course progress
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 b0247ac..7609859 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1159,7 +1159,7 @@ class Course(models.Model):
return grade
def get_current_unit(self, user):
- course_status = CourseStatus.objects.filter(course=self, user=user)
+ course_status = CourseStatus.objects.filter(course=self, user_id=user)
if course_status.exists():
return course_status.first().current_unit