diff options
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -157,6 +157,9 @@ class Course(models.Model): begin = models.DateTimeField(verbose_name="début du cours", db_index=True) end = models.DateTimeField(verbose_name="fin du cours") + active = models.BooleanField(verbose_name="actif", default=True) + checked = models.BooleanField(default=True, db_index=True) + def __str__(self): return self.name |