aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-03-26 18:27:54 +0200
committerAlban Gruin2017-03-26 18:27:54 +0200
commitf9760bc6dbbd568ed57c8eace17beb0eaa05ce2b (patch)
tree777f9c56505e5e6e45c3d9e5f4af24a175e25643 /models.py
parent3b33b8bde368980039c0b5c9e7aa6df05063afb2 (diff)
parent7a470357a430a61fd61e5601fd2dde37f13bc646 (diff)
Merge branch 'stable/0.7.z' into prod/pa1ch/0.7.zv0.7.3-pa1chprod/pa1ch/0.7.z
Diffstat (limited to 'models.py')
-rw-r--r--models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/models.py b/models.py
index b047b44..3e48622 100644
--- a/models.py
+++ b/models.py
@@ -83,11 +83,12 @@ 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)
- super(Group, self).save()
+
+ self.mention, self.subgroup, self.td, self.tp = parse_group(self.name)
+ super(Group, self).save()
class Meta: