From 7d561b46c745327f36831d663e1686e9e0fb14e0 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Mon, 29 Jan 2018 13:20:40 +0300 Subject: [PATCH] Add from_author field to Course --- apps/course/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/course/models.py b/apps/course/models.py index 1074bdd7..7c7ba259 100644 --- a/apps/course/models.py +++ b/apps/course/models.py @@ -24,6 +24,7 @@ class Course(models.Model): author = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True) title = models.CharField("Название курса", max_length=100) short_description = models.TextField("Краткое описание курса") + from_author = models.TextField("От автора", default='') cover = models.ImageField("Фон курса", upload_to='courses') price = models.DecimalField("Цена курса", help_text="Если цены нету, то курс бесплатный", max_digits=10, decimal_places=2, null=True, blank=True) is_infinite = models.BooleanField(default=False)