diff options
author | luxagraf <sng@luxagraf.net> | 2018-02-10 05:43:20 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-02-10 05:43:20 -0600 |
commit | 5a35f6b3cd0c74a46a2e8787b582ec61cbc333d5 (patch) | |
tree | 5e386477abc0f68f61c27f039f8754efacec3e9e /app | |
parent | 494e816f431f47fda28658f64bee5969e5ca729f (diff) |
removed sightings by person and styled sightings list on entry pages
Diffstat (limited to 'app')
-rw-r--r-- | app/sightings/build.py | 14 | ||||
-rw-r--r-- | app/sightings/urls.py | 22 |
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' + #), ] |