aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: