diff options
Diffstat (limited to 'core/views')
-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 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 <a href="/handbook/troggle/namesredesign.html">Proposal to fix this</a>)' - 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): |