summaryrefslogtreecommitdiff
path: root/app/sightings/build.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-01-28 10:35:35 -0600
committerluxagraf <sng@luxagraf.net>2018-01-28 10:35:35 -0600
commitdcab104af3e89a97c3834b10c8c98229fb5308fe (patch)
tree3980ac32a3d49a74850da66bda0587e0af6a8454 /app/sightings/build.py
parent916474036c1d2e041ed6425a3c0370a2e4c7e7bc (diff)
cleaned up sightings build and admin code
Diffstat (limited to 'app/sightings/build.py')
-rw-r--r--app/sightings/build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
index 565b675..97eecd5 100644
--- a/app/sightings/build.py
+++ b/app/sightings/build.py
@@ -3,19 +3,19 @@ from django.urls import reverse
from builder.base import BuildNew
-class BuildBirds(BuildNew):
+class BuildSightings(BuildNew):
def build(self):
self.build_detail_view()
self.build_list_view(
- base_path=reverse("birds:list_redirect"),
+ base_path=reverse("sightings:list"),
paginate_by=24
)
- print("building birds")
+ print("building sightings")
def get_model_queryset(self):
return self.model.objects.all()
def builder():
- j = BuildBirds("birds", "birdsighting")
+ j = BuildSightings("ap", "sighting")
j.build()