From b158b94ca7f8447d60166fbfc6886562bb839965 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 9 Sep 2017 19:39:36 +0200 Subject: Qu’ai-je fait ? --- models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/models.py b/models.py index 061a213..c263510 100644 --- a/models.py +++ b/models.py @@ -40,12 +40,6 @@ class Year(SlugModel): def __str__(self): return self.name - def save(self): - if not self.slug: - self.slug = slugify(self.name) - - super(Year, self).save() - class Meta: verbose_name = "année" -- cgit v1.2.1