summaryrefslogtreecommitdiff
path: root/app/sightings
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-01-28 11:02:23 -0600
committerluxagraf <sng@luxagraf.net>2018-01-28 11:02:23 -0600
commit83769d153870bcb891585f447771e566731f39c4 (patch)
tree009cbc33b1ad221f3768e6eb0edfa2b632e145c5 /app/sightings
parent41ffa80e1fbee119adcc00310954d886b45f1493 (diff)
added users to sightings build
Diffstat (limited to 'app/sightings')
-rw-r--r--app/sightings/build.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
index 8207838..bf9780a 100644
--- a/app/sightings/build.py
+++ b/app/sightings/build.py
@@ -1,20 +1,23 @@
import os
from django.urls import reverse
from builder.base import BuildNew
+from django.contrib.auth.models import User
class BuildSightings(BuildNew):
def build(self):
+ users = User.objects.all()
self.build_detail_view()
self.build_list_view(
base_path=reverse("sightings:list"),
paginate_by=24
)
- self.build_list_view(
- base_path=reverse("sightings:list_by_person"),
- paginate_by=24
- )
+ for user in users:
+ self.build_list_view(
+ base_path=reverse("sightings:list_by_person", kwargs={'user': user}),
+ paginate_by=24
+ )
print("building sightings")
def get_model_queryset(self):