From e004bf8b70d1f8142e63748ea737e8c0ac8fcfda Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 1 Oct 2017 15:18:14 +0200 Subject: Changement de la valeur par défaut des cours --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index cca4df8..ae9265a 100644 --- a/models.py +++ b/models.py @@ -171,7 +171,7 @@ class CourseManager(Manager): class Course(models.Model): objects = CourseManager() - name = models.CharField(max_length=255, verbose_name="nom", null=True) + name = models.CharField(max_length=255, verbose_name="nom", default="Cours") type_ = models.CharField(name="type", max_length=255, verbose_name="type de cours", null=True) timetable = models.ForeignKey(Timetable, on_delete=models.CASCADE, -- cgit v1.2.1