diff options
author | adityacp | 2020-03-09 17:10:10 +0530 |
---|---|---|
committer | adityacp | 2020-03-09 17:10:10 +0530 |
commit | 81667305df2bc148e4ca6247ad3b2d12b30e660c (patch) | |
tree | a762e7e1c95adcc354b4e51d8dc3aedd97fe0050 /yaksh/models.py | |
parent | b3362b8a5d09184407ae988699b22b46485a916e (diff) | |
download | online_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.py | 3 |
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): |