blob: 5cf552bc41f908aa24de0d9cffb225f8aa51e521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()
|