diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-01-24 02:33:42 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-01-24 02:33:42 +0000 |
commit | fedcc6d201df8a474105ee1032430e9fbd401b11 (patch) | |
tree | 153e881731cdba88ba1f935a8989adb53212ff3f /core/views/logbooks.py | |
parent | 61722fd6c065f491770568eb0aad57194ce13d61 (diff) | |
download | troggle-fedcc6d201df8a474105ee1032430e9fbd401b11.tar.gz troggle-fedcc6d201df8a474105ee1032430e9fbd401b11.tar.bz2 troggle-fedcc6d201df8a474105ee1032430e9fbd401b11.zip |
whack a mole
Diffstat (limited to 'core/views/logbooks.py')
-rw-r--r-- | core/views/logbooks.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py index 2466fec..8bec554 100644 --- a/core/views/logbooks.py +++ b/core/views/logbooks.py @@ -4,6 +4,7 @@ from django.core.exceptions import ValidationError from django.db.models import Q from django.shortcuts import redirect, render from django.views.generic.list import ListView +from django.contrib.auth.models import User import troggle.settings as settings from troggle.core.models.logbooks import QM, LogbookEntry, PersonLogEntry, writelogbook @@ -12,7 +13,7 @@ from troggle.core.models.troggle import Expedition, Person from troggle.core.models.wallets import Wallet from troggle.core.utils import TROG, current_expo from troggle.parsers.imports import import_logbook - +from troggle.parsers.people import ensure_users_are_persons """These views are for logbook items when they appear in an 'expedition' page and for persons: their individual pages and their perseonexpedition pages. @@ -47,9 +48,10 @@ def notablepersons(request): return render( request, "notablepersons.html", {"persons": persons, "pcols": pcols, "notablepersons": notablepersons} ) - + def people_ids(request): + ensure_users_are_persons() persons = Person.objects.order_by('fullname') # From what I can tell, "persons" seems to be the table rows, while "pcols" is the table columns. - AC 16 Feb 09 pcols = [] |