diff options
Diffstat (limited to 'apps/pages/models.py')
-rw-r--r-- | apps/pages/models.py | 3 |
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() |