summaryrefslogtreecommitdiff
path: root/app/sightings/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sightings/build.py')
-rw-r--r--app/sightings/build.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
new file mode 100644
index 0000000..565b675
--- /dev/null
+++ b/app/sightings/build.py
@@ -0,0 +1,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()