diff options
author | luxagraf <sng@luxagraf.net> | 2019-04-14 15:28:08 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-04-14 15:28:08 -0500 |
commit | 161a8f1917f17f169ca750e37a18d4f35014c6fa (patch) | |
tree | cac997a99ab6462d1a17519fcf6638f26dc26e91 /app/src | |
parent | c86f97043740f511075bf6ccde8d61276bd6e4df (diff) |
fixed but that put unpublished src posts in sitemap
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/models.py b/app/src/models.py index ff829e1..5f3f2fd 100644 --- a/app/src/models.py +++ b/app/src/models.py @@ -163,8 +163,7 @@ class SrcSitemap(Sitemap): def items(self): return list(chain( - Post.objects.all(), - Book.objects.all(), + Post.objects.all(status=1), Topic.objects.all() )) |