summaryrefslogtreecommitdiffstats
path: root/core/views_logbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views_logbooks.py')
-rw-r--r--core/views_logbooks.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/views_logbooks.py b/core/views_logbooks.py
index f9190c0..4495f03 100644
--- a/core/views_logbooks.py
+++ b/core/views_logbooks.py
@@ -241,4 +241,12 @@ def delLogbookEntry(lbe):
pt.delete()
lbe.delete()
os.remove(lbe.filename)
+
+def get_people(request, expeditionslug):
+ exp = Expedition.objects.get(year = expeditionslug)
+ return render_with_context(request,'options.html', {"items": [(pe.slug, pe.name) for pe in exp.personexpedition_set.all()]})
+
+def get_logbook_entries(request, expeditionslug):
+ exp = Expedition.objects.get(year = expeditionslug)
+ return render_with_context(request,'options.html', {"items": [(le.slug, "%s - %s" % (le.date, le.title)) for le in exp.logbookentry_set.all()]})