aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-03-26 18:26:34 +0200
committerAlban Gruin2017-03-26 18:26:34 +0200
commit7a470357a430a61fd61e5601fd2dde37f13bc646 (patch)
tree67a5a9db2f96a595a4903a215376fb92b75a7283 /models.py
parentf413b2382baca5c1cb3a219afa02867bd0348b03 (diff)
Les parties du groupe sont déduites du nom "réel" et non plus du nom dans celcatv0.7.3stable/0.7.z
Diffstat (limited to 'models.py')
-rw-r--r--models.py3
1 files changed, 2 insertions, 1 deletions
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()