summaryrefslogtreecommitdiff
path: root/app/birds/build.py
blob: 870133f04d4b68f51e76ae02de7d9e836382ca82 (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.core.urlresolvers 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()