diff options
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -175,7 +175,8 @@ class CourseManager(Manager): class Course(models.Model): objects = CourseManager() - name = models.CharField(max_length=255, verbose_name="nom", default="Cours") + name = models.CharField(max_length=255, verbose_name="nom", default="Sans nom", + null=True) type_ = models.CharField(name="type", max_length=255, verbose_name="type de cours", null=True) timetable = models.ForeignKey(Timetable, on_delete=models.CASCADE, |