diff options
author | Alban Gruin | 2017-10-10 21:35:55 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-10 21:35:55 +0200 |
commit | e2fb71d3377dee14cf1934ac3d6ad448bb7063bc (patch) | |
tree | 921a1614e1b9a9baf809237b1675749eec6ed6e4 | |
parent | 0e0e59e3530dcfbb8e92b5a3926edad4f58d72a1 (diff) |
Un cours doit obligatoirement avoir un nom
-rw-r--r-- | models.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -175,8 +175,7 @@ class CourseManager(Manager): class Course(models.Model): objects = CourseManager() - name = models.CharField(max_length=255, verbose_name="nom", default="Sans nom", - null=True) # TODO 0.11: null=False + name = models.CharField(max_length=255, verbose_name="nom", default="Sans nom") type_ = models.CharField(name="type", max_length=255, verbose_name="type de cours", null=True) timetable = models.ForeignKey(Timetable, on_delete=models.CASCADE, |