diff options
author | lxf <sng@luxagraf.net> | 2019-05-02 15:44:35 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-05-02 15:44:35 +0000 |
commit | 3c1a9804c9858328b4b18be634f7d4dbd32b9816 (patch) | |
tree | 34b8b56c37c21aadfd8be0cb6b500623966a55f6 /apps | |
parent | 5e545245ec2900aa33328629d18d4847860660bb (diff) |
Diffstat (limited to 'apps')
-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() |