aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-10-01 15:18:14 +0200
committerAlban Gruin2017-10-01 15:18:14 +0200
commite004bf8b70d1f8142e63748ea737e8c0ac8fcfda (patch)
tree07b82c8cf197f190627aa5bf246d16d5459e562c
parentf7016ebb865a5b334aff2d84ab009bb491921e54 (diff)
Changement de la valeur par défaut des cours
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
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,