mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-23 07:41:52 +00:00
13 lines
522 B
Python
13 lines
522 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})
|
||
|
|