From f413b2382baca5c1cb3a219afa02867bd0348b03 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 26 Mar 2017 18:24:01 +0200 Subject: En enregistrant les modèles c'est mieux --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index b047b44..975631c 100644 --- a/models.py +++ b/models.py @@ -87,7 +87,7 @@ class Group(models.Model): if self.name == "": self.name = self.celcat_name self.slug = slugify(self.name) - super(Group, self).save() + super(Group, self).save() class Meta: -- cgit v1.2.1 From 7a470357a430a61fd61e5601fd2dde37f13bc646 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 26 Mar 2017 18:26:34 +0200 Subject: Les parties du groupe sont déduites du nom "réel" et non plus du nom dans celcat --- models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models.py b/models.py index 975631c..3e48622 100644 --- a/models.py +++ b/models.py @@ -83,10 +83,11 @@ class Group(models.Model): return self.name def save(self, *args, **kwargs): - self.mention, self.subgroup, self.td, self.tp = parse_group(self.celcat_name) if self.name == "": self.name = self.celcat_name self.slug = slugify(self.name) + + self.mention, self.subgroup, self.td, self.tp = parse_group(self.name) super(Group, self).save() -- cgit v1.2.1