summaryrefslogtreecommitdiff
path: root/app/sightings
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-04-05 09:30:44 -0400
committerluxagraf <sng@luxagraf.net>2018-04-05 09:30:44 -0400
commita26ad92062c8d1ab13727a2a4f4293d17d09808c (patch)
treef40e6d729fab874fb80376f32be9da84d13120d5 /app/sightings
parent2d440f0c309f49803ec95c46d9f586a7305780cd (diff)
added image to links for screencaptures
Diffstat (limited to 'app/sightings')
-rw-r--r--app/sightings/build.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
index 5321eff..14b363c 100644
--- a/app/sightings/build.py
+++ b/app/sightings/build.py
@@ -1,30 +1,27 @@
-import os
from django.urls import reverse
from builder.base import BuildNew
-from django.contrib.auth.models import User
-from .models import Sighting
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
)
- #for user in users:
+ # for user in users:
# if Sighting.objects.filter(seen_by=user):
# self.build_list_view(
# base_path=reverse("sightings:list_by_person", kwargs={'user': user, 'page':1}),
# paginate_by=24
# )
- #print("building sightings")
+ # print("building sightings")
def get_model_queryset(self):
return self.model.objects.all()
+
def builder():
j = BuildSightings("sightings", "sighting")
j.build()