forked from expo/troggle
32e1e6b9ab
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8044 by julian @ 10/30/2008 1:13 PM
18 lines
750 B
Python
18 lines
750 B
Python
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})
|
|
|
|
def logbookentry(request, logbookentry_id):
|
|
logbookentry = LogbookEntry.objects.filter(id = logbookentry_id)[0]
|
|
return render_to_response('logbookentry.html', {'logbookentry': logbookentry, 'settings': settings})
|
|
|
|
|