fix creating slug

This commit is contained in:
2021-03-07 12:59:50 +00:00
parent 5f95bdd514
commit 1228b15c31

View File

@@ -116,7 +116,7 @@ class JobGroup(models.Model):
def save(self, *args, **kwargs):
if not self.slug:
self.slug = self.shortterm
self.slug = slugify(self.shortterm)
super().save(*args, **kwargs)