aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-10-01 18:58:34 +0200
committerAlban Gruin2017-10-01 18:58:34 +0200
commit62c45f003e338440061c0d3e8356f2ab940e6edc (patch)
tree7abc13a28d5d50bc49ec08c014ce047e8ed5e390 /models.py
parent5d59112a9c7badc2cc0a48d1a8e33d48e1e6e719 (diff)
Re-changement de la valeur par défaut du nom des cours
Diffstat (limited to 'models.py')
-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,