blob: 565b675e8204ea0eeb551be0222bcfa2c0876a3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import os
from django.urls import reverse
from builder.base import BuildNew
class BuildBirds(BuildNew):
def build(self):
self.build_detail_view()
self.build_list_view(
base_path=reverse("birds:list_redirect"),
paginate_by=24
)
print("building birds")
def get_model_queryset(self):
return self.model.objects.all()
def builder():
j = BuildBirds("birds", "birdsighting")
j.build()
|