aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'models.py')
-rw-r--r--models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/models.py b/models.py
index 60be95c..9f36a6f 100644
--- a/models.py
+++ b/models.py
@@ -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",)