summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-11-10 11:26:26 -0500
committerluxagraf <sng@luxagraf.net>2019-11-10 11:26:26 -0500
commitfec70944b507c2d7d81f0f732df4ed8e7d2c3426 (patch)
treec87760ffc435f25fd7d3b20b73b8535350ed4234
parentd9663a8755cc6fac51bd9aa345f61cf62a8b7e19 (diff)
fixedbugs in Src
-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 2c9707e..69d85a5 100644
--- a/app/src/models.py
+++ b/app/src/models.py
@@ -76,7 +76,7 @@ class SrcPost(models.Model):
def save(self):
md = render_images(self.body_markdown)
self.body_html = markdown_to_html(md)
- super(Post, self).save()
+ super(SrcPost, self).save()
def get_upload_path(self, filename):
@@ -163,7 +163,7 @@ class SrcSitemap(Sitemap):
def items(self):
return list(chain(
- Post.objects.filter(status=1),
+ SrcPost.objects.filter(status=1),
Topic.objects.all()
))