diff options
author | Alban Gruin | 2017-10-01 15:18:14 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-01 15:18:14 +0200 |
commit | e004bf8b70d1f8142e63748ea737e8c0ac8fcfda (patch) | |
tree | 07b82c8cf197f190627aa5bf246d16d5459e562c /models.py | |
parent | f7016ebb865a5b334aff2d84ab009bb491921e54 (diff) |
Changement de la valeur par défaut des cours
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |