From 5a35f6b3cd0c74a46a2e8787b582ec61cbc333d5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 10 Feb 2018 05:43:20 -0600 Subject: removed sightings by person and styled sightings list on entry pages --- app/sightings/build.py | 14 +++++++------- app/sightings/urls.py | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'app') diff --git a/app/sightings/build.py b/app/sightings/build.py index db46a34..5321eff 100644 --- a/app/sightings/build.py +++ b/app/sightings/build.py @@ -14,13 +14,13 @@ class BuildSightings(BuildNew): base_path=reverse("sightings:list"), paginate_by=24 ) - 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") + #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") def get_model_queryset(self): return self.model.objects.all() diff --git a/app/sightings/urls.py b/app/sightings/urls.py index f60be22..76a952e 100644 --- a/app/sightings/urls.py +++ b/app/sightings/urls.py @@ -20,15 +20,15 @@ urlpatterns = [ views.SightingDetailView.as_view(), name='detail' ), - path( - r'/', - views.SightingListUserView.as_view(), - {'page':1}, - name='list_by_person' - ), - path( - r'//', - views.SightingListUserView.as_view(), - name='list_by_person' - ), + #path( + # r'/', + # views.SightingListUserView.as_view(), + # {'page':1}, + # name='list_by_person' + #), + #path( + # r'//', + # views.SightingListUserView.as_view(), + # name='list_by_person' + #), ] -- cgit v1.2.3-70-g09d2