diff --git a/core/views/logbooks.py b/core/views/logbooks.py
index f26a850..625575f 100644
--- a/core/views/logbooks.py
+++ b/core/views/logbooks.py
@@ -139,11 +139,13 @@ class Expeditions_jsonListView(ListView):
def person(request, first_name='', last_name='', ):
try:
this_person = Person.objects.get(first_name = first_name, last_name = last_name)
- return render(request,'person.html', {'person': this_person, })
except:
message = f'Person not found \'{first_name} {last_name}\' - possibly Scottish? (See our Proposal to fix this)'
- return render(request, 'errors/generic.html', {'message': message})
+ return render(request, 'errors/generic.html', {'message': message})
+
+ return render(request,'person.html', {'person': this_person })
+
def get_person_chronology(personexpedition):
diff --git a/templates/person.html b/templates/person.html
index 1216c60..d88b91b 100644
--- a/templates/person.html
+++ b/templates/person.html
@@ -16,17 +16,25 @@
-
Expo | Logbook mentions | Survex trips | +{% for personexpedition in person.personexpedition_set.all %} +
---|---|---|
{{personexpedition.expedition.year}} + | ++ + {{personexpedition.persontrip_set.all|length}} + | + ++ + {{personexpedition.survexpersonrole_set.all|length}} + | +