aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
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()