diff options
author | Alban Gruin | 2017-03-26 18:26:34 +0200 |
---|---|---|
committer | Alban Gruin | 2017-03-26 18:26:34 +0200 |
commit | 7a470357a430a61fd61e5601fd2dde37f13bc646 (patch) | |
tree | 67a5a9db2f96a595a4903a215376fb92b75a7283 /models.py | |
parent | f413b2382baca5c1cb3a219afa02867bd0348b03 (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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |