diff --git a/apps/course/models.py b/apps/course/models.py index 12db9652..2cbc6d27 100644 --- a/apps/course/models.py +++ b/apps/course/models.py @@ -18,10 +18,13 @@ class Like(models.Model): class Course(models.Model): + PENDING = 0 + PUBLISHED = 1 + ARCHIVED = 2 STATUS_CHOICES = ( - (0, 'Pending'), - (1, 'Published'), - (2, 'Archived'), + (PENDING, 'Pending'), + (PUBLISHED, 'Published'), + (ARCHIVED, 'Archived'), ) author = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True) title = models.CharField('Название курса', max_length=100, db_index=True)