summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 463434b..c65e9ef 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -143,13 +143,17 @@ class CourseManager(models.Manager):
#############################################################################
class Lesson(models.Model):
+ # Lesson name
name = models.CharField(max_length=255)
+
+ # Markdown text of lesson content
description = models.TextField()
+
+ # Markdown text should be in html format
html_data = models.TextField(null=True, blank=True)
- creator = models.ForeignKey(User)
- def get_files(self):
- return LessonFile.objects.filter(lesson=self)
+ # Creator of the lesson
+ creator = models.ForeignKey(User)
def __str__(self):
return "{0}".format(self.name)