diff --git a/apps/course/models.py b/apps/course/models.py index 553e6c7c..e680e643 100644 --- a/apps/course/models.py +++ b/apps/course/models.py @@ -123,7 +123,7 @@ class Course(BaseModel, DeactivatedMixin): return str(self.id) + ' ' + self.title def save(self, *args, **kwargs): - if not self.slug: + if not self.slug and self.title: self.slug = slugify(unidecode(self.title[:90])) if self.slug: if self.slug.isdigit():