summaryrefslogtreecommitdiff
path: root/app/posts/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/build.py')
-rw-r--r--app/posts/build.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/posts/build.py b/app/posts/build.py
index 9a7e2c1..b49b925 100644
--- a/app/posts/build.py
+++ b/app/posts/build.py
@@ -18,6 +18,7 @@ class BuildSrc(BuildNew):
paginate_by=50
)
self.build_detail_view()
+ self.build_feed("src:feed")
class BuildGuide(BuildNew):
@@ -121,3 +122,31 @@ class BuildEssays(BuildNew):
paginate_by=50
)
self.build_detail_view()
+
+
+class BuildRange(BuildNew):
+
+ def get_model_queryset(self):
+ return self.model.objects.filter(post_type=PostType.RANGE).filter(status__exact=1).order_by('-pub_date')
+
+ def build(self):
+ self.build_list_view(
+ base_path=reverse("range:range-list"),
+ paginate_by=30
+ )
+ self.build_detail_view()
+ self.build_feed("range:feed")
+
+
+class BuildFriends(BuildNew):
+
+ def get_model_queryset(self):
+ return self.model.objects.filter(post_type=PostType.FRIENDS).filter(status__exact=1).order_by('-pub_date')
+
+ def build(self):
+ self.build_list_view(
+ base_path=reverse("friends:friends-list"),
+ paginate_by=30
+ )
+ self.build_detail_view()
+ self.build_feed("friends:feed")