summaryrefslogtreecommitdiffstats
path: root/core/models
diff options
context:
space:
mode:
Diffstat (limited to 'core/models')
-rw-r--r--core/models/logbooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models/logbooks.py b/core/models/logbooks.py
index 680036a..19cd33d 100644
--- a/core/models/logbooks.py
+++ b/core/models/logbooks.py
@@ -104,14 +104,14 @@ class PersonTrip(TroggleModel):
ordering = ('-personexpedition',)
#order_with_respect_to = 'personexpedition'
- def persontrip_next(self):
+ def next_personlog(self):
futurePTs = PersonTrip.objects.filter(personexpedition = self.personexpedition, logbook_entry__date__gt = self.logbook_entry.date).order_by('logbook_entry__date').all()
if len(futurePTs) > 0:
return futurePTs[0]
else:
return None
- def persontrip_prev(self):
+ def prev_personlog(self):
pastPTs = PersonTrip.objects.filter(personexpedition = self.personexpedition, logbook_entry__date__lt = self.logbook_entry.date).order_by('-logbook_entry__date').all()
if len(pastPTs) > 0:
return pastPTs[0]