aboutsummaryrefslogtreecommitdiff
path: root/apps/pages
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pages')
-rw-r--r--apps/pages/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/pages/models.py b/apps/pages/models.py
index 0c663cb..c6080b7 100644
--- a/apps/pages/models.py
+++ b/apps/pages/models.py
@@ -26,8 +26,7 @@ class Page(models.Model):
# run markdown
md = render_images(self.body_markdown)
self.body_html = markdown_to_html(md)
- if not self.id:
- # self.date_created = timezone.now()
+ if not self.slug:
self.slug = slugify(self.title)[:50]
super(Page, self).save()