diff options
-rw-r--r-- | models.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,11 +25,11 @@ from .utils import parse_group class SlugModel(models.Model): - def save(self): + def save(self, *args, **kwargs): if not self.slug: self.slug = slugify(self.name) - super(SlugModel, self).save() + super(SlugModel, self).save(*args, **kwargs) class Meta: abstract = True @@ -148,7 +148,7 @@ class Group(SlugModel): if self.subgroup is None: self.subgroup = "" - super(Group, self).save() + super(Group, self).save(*args, **kwargs) class Meta: index_together = ("mention", "semester", "subgroup",) |