aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'models.py')
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index 109b327..7609e7b 100644
--- a/models.py
+++ b/models.py
@@ -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="")