diff options
author | luxagraf <sng@luxagraf.net> | 2020-08-06 22:12:11 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-08-06 22:12:11 -0400 |
commit | b21ee9e325cd71e2061222b06b7929068bdb79ae (patch) | |
tree | ca0f5d6ad34eaf4dbf155d8249af0b91c7862591 /app/fieldnotes/views.py | |
parent | 21b0006e218f27af8eb7cba81a1b854892bfd5a8 (diff) |
added builder for src and guides via posts
Diffstat (limited to 'app/fieldnotes/views.py')
-rw-r--r-- | app/fieldnotes/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/fieldnotes/views.py b/app/fieldnotes/views.py index 47fe353..f22cfeb 100644 --- a/app/fieldnotes/views.py +++ b/app/fieldnotes/views.py @@ -17,9 +17,8 @@ class FieldNoteListView(PaginatedListView): def dispatch(self, request, *args, **kwargs): path = request.path.split('/')[1:-1] - if int(path[-1]) == self.kwargs['page']: + if path[-1] == str(self.kwargs['page']): path = "/".join(t for t in path[:-1]) - print(path) request.page_url = "/" + path + '/%d/' else: request.page_url = request.path + '%d/' |