diff options
author | Alban Gruin | 2017-09-05 10:50:12 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-05 10:50:12 +0200 |
commit | f0158ff8d00119307bc8f8ec59de0b6a6f5be3c6 (patch) | |
tree | 92d8c8fdcc74bf7204ab032038bc13fcab0ce8dc | |
parent | b4ed0a15e5bc11c7c41d4d8308ff900a34486697 (diff) |
Remplacement du type « REUNION » par « réunion »
-rw-r--r-- | models.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() |