forked from expo/troggle
[svn] 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.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8040 by aaron @ 10/27/2008 6:04 PM
This commit is contained in:
parent
0e8c7af706
commit
dde16108dd
12
expo/views_logbooks.py
Normal file
12
expo/views_logbooks.py
Normal file
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user