aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-10-10 21:35:55 +0200
committerAlban Gruin2017-10-10 21:35:55 +0200
commite2fb71d3377dee14cf1934ac3d6ad448bb7063bc (patch)
tree921a1614e1b9a9baf809237b1675749eec6ed6e4
parent0e0e59e3530dcfbb8e92b5a3926edad4f58d72a1 (diff)
Un cours doit obligatoirement avoir un nom
-rw-r--r--models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/models.py b/models.py
index e48efa5..fbbf877 100644
--- a/models.py
+++ b/models.py
@@ -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,