diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/sightings/build.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py index bf9780a..e77a57b 100644 --- a/app/sightings/build.py +++ b/app/sightings/build.py @@ -14,10 +14,11 @@ class BuildSightings(BuildNew): paginate_by=24 ) for user in users: - self.build_list_view( - base_path=reverse("sightings:list_by_person", kwargs={'user': user}), - paginate_by=24 - ) + 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") def get_model_queryset(self): |