diff options
Diffstat (limited to 'core')
-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 = [] |