From 646c8fcf515f271aa9ac31e641593b3614a61106 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 27 Oct 2008 19:04:21 +0100 Subject: [PATCH] [svn r8040] This file was created on Seagrass, but it looks like someone forgot to add it to the repo so I SCP'd it to my laptop and added it. --- troggle/expo/views_logbooks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 troggle/expo/views_logbooks.py diff --git a/troggle/expo/views_logbooks.py b/troggle/expo/views_logbooks.py new file mode 100644 index 000000000..e4a3905eb --- /dev/null +++ b/troggle/expo/views_logbooks.py @@ -0,0 +1,12 @@ +from django.shortcuts import render_to_response +from troggle.expo.models import Expedition, Person, PersonExpedition, PersonTrip, LogbookEntry +import troggle.settings as settings + +def personindex(request): + persons = Person.objects.all() + return render_to_response('personindex.html', {'persons': persons, 'settings': settings}) + +def person(request, person_id): + person = Person.objects.filter(id = person_id)[0] + return render_to_response('person.html', {'person': person, 'settings': settings}) +