diff options
Diffstat (limited to 'app/posts/build.py')
-rw-r--r-- | app/posts/build.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/posts/build.py b/app/posts/build.py new file mode 100644 index 0000000..5cf552b --- /dev/null +++ b/app/posts/build.py @@ -0,0 +1,27 @@ +from django.urls import reverse +from django.apps import apps +from builder.base import BuildNew +from itertools import chain + +from django.conf import settings + + +class BuildPosts(BuildNew): + + def build(self): + self.build_list_view( + base_path=reverse("essay-list:list"), + paginate_by=50 + ) + self.build_list_view( + base_path=reverse("guide-list:list"), + paginate_by=50 + ) + self.build_detail_view() + + + + +def posts_builder(): + j = BuildPosts("posts", "post") + j.build() |