diff options
author | Alban Gruin | 2017-10-01 18:58:34 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-01 18:58:34 +0200 |
commit | 62c45f003e338440061c0d3e8356f2ab940e6edc (patch) | |
tree | 7abc13a28d5d50bc49ec08c014ce047e8ed5e390 /models.py | |
parent | 5d59112a9c7badc2cc0a48d1a8e33d48e1e6e719 (diff) |
Re-changement de la valeur par défaut du nom des cours
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, |