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