2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 06:57:09 +00:00

whack a mole

This commit is contained in:
2025-01-24 02:33:42 +00:00
parent 61722fd6c0
commit fedcc6d201
5 changed files with 31 additions and 7 deletions

View File

@@ -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 = []