From a26ad92062c8d1ab13727a2a4f4293d17d09808c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 5 Apr 2018 09:30:44 -0400 Subject: added image to links for screencaptures --- app/sightings/build.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'app/sightings') 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() -- cgit v1.2.3-70-g09d2