diff options
author | Alban Gruin | 2017-09-08 20:50:07 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-08 20:50:07 +0200 |
commit | 82349adf8da273ce37cd7293d30798e17e8fdc71 (patch) | |
tree | 35ffb41b79fdfb3211199ac7aaf31b44c9c8d403 /models.py | |
parent | 400b3dc382ff5f0b279250b4952569206e42d7fd (diff) |
Ajout du oncascade au modèle timetables
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ class Year(models.Model): class Timetable(models.Model): - year = models.ForeignKey(Year, verbose_name="année") + year = models.ForeignKey(Year, on_delete=models.CASCADE, verbose_name="année") name = models.CharField(max_length=64, verbose_name="nom") url = models.URLField(max_length=255, verbose_name="URL") slug = models.SlugField(max_length=64, default="") |