aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models.py b/models.py
index 8bd2399..ec141a2 100644
--- a/models.py
+++ b/models.py
@@ -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,