summaryrefslogtreecommitdiffstats
path: root/core/views/logbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/logbooks.py')
-rw-r--r--core/views/logbooks.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py
index 8b62368..d74b54a 100644
--- a/core/views/logbooks.py
+++ b/core/views/logbooks.py
@@ -48,6 +48,21 @@ def notablepersons(request):
request, "notablepersons.html", {"persons": persons, "pcols": pcols, "notablepersons": notablepersons}
)
+def people_ids(request):
+
+ persons = Person.objects.all()
+ # From what I can tell, "persons" seems to be the table rows, while "pcols" is the table columns. - AC 16 Feb 09
+ pcols = []
+ ncols = 4
+ nc = int((len(persons) + ncols - 1) / ncols)
+ for i in range(ncols):
+ pcols.append(persons[i * nc : (i + 1) * nc])
+
+
+ return render(
+ request, "people_ids.html", {"persons": persons, "pcols": pcols}
+ )
+
def expedition(request, expeditionname):
"""Returns a rendered page for one expedition, specified by the year e.g. '2019'.