From f0158ff8d00119307bc8f8ec59de0b6a6f5be3c6 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 5 Sep 2017 10:50:12 +0200 Subject: Remplacement du type « REUNION » par « réunion » --- models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models.py b/models.py index 1aeb8e2..0b0ee63 100644 --- a/models.py +++ b/models.py @@ -163,6 +163,7 @@ class Course(models.Model): def save(self, *args, **kwargs): if self.type is not None: self.type = self.type.replace("COURS", "cours") + self.type = self.type.replace("REUNION", "réunion") if self.name is not None: self.name = self.name.split("(")[0].strip() -- cgit v1.2.1