summaryrefslogtreecommitdiff
path: root/app/src/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/models.py')
-rw-r--r--app/src/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/models.py b/app/src/models.py
index ce78c24..fc0a5fc 100644
--- a/app/src/models.py
+++ b/app/src/models.py
@@ -74,7 +74,7 @@ class Post(models.Model):
def save(self):
md = image_url_replace(self.body_markdown)
self.body_html = markdown_to_html(md)
- super(Entry, self).save()
+ super(Post, self).save()
def get_upload_path(self, filename):
@@ -160,7 +160,7 @@ class SrcSitemap(Sitemap):
def items(self):
return list(chain(
- Entry.objects.all(),
+ Post.objects.all(),
Book.objects.all(),
Topic.objects.all()
))