summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2020-03-09 17:10:10 +0530
committeradityacp2020-03-09 17:10:10 +0530
commit81667305df2bc148e4ca6247ad3b2d12b30e660c (patch)
treea762e7e1c95adcc354b4e51d8dc3aedd97fe0050 /yaksh/models.py
parentb3362b8a5d09184407ae988699b22b46485a916e (diff)
downloadonline_test-81667305df2bc148e4ca6247ad3b2d12b30e660c.tar.gz
online_test-81667305df2bc148e4ca6247ad3b2d12b30e660c.tar.bz2
online_test-81667305df2bc148e4ca6247ad3b2d12b30e660c.zip
Download course progress
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index e161543..072c1b5 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -648,6 +648,9 @@ class LearningUnit(models.Model):
order=self.order, type="lesson", lesson=new_lesson)
return new_unit
+ def __str__(self):
+ return self.lesson.name if self.lesson else self.quiz.description
+
###############################################################################
class LearningModule(models.Model):