summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/sightings/build.py14
-rw-r--r--app/sightings/urls.py22
2 files changed, 18 insertions, 18 deletions
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'<str:user>/',
- views.SightingListUserView.as_view(),
- {'page':1},
- name='list_by_person'
- ),
- path(
- r'<str:user>/<int:page>/',
- views.SightingListUserView.as_view(),
- name='list_by_person'
- ),
+ #path(
+ # r'<str:user>/',
+ # views.SightingListUserView.as_view(),
+ # {'page':1},
+ # name='list_by_person'
+ #),
+ #path(
+ # r'<str:user>/<int:page>/',
+ # views.SightingListUserView.as_view(),
+ # name='list_by_person'
+ #),
]