summaryrefslogtreecommitdiffstats
path: root/core/models/logbooks.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-01-30 16:07:44 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-01-30 16:07:44 +0000
commit58f7cf72d48a89e3bfe32bbde6b47f263121e232 (patch)
tree3f12c1caf4689f4f9addb63cd5aa93cb37af2808 /core/models/logbooks.py
parent3742e0f3670bfe19c6bccce81a4ef9bb11953067 (diff)
downloadtroggle-58f7cf72d48a89e3bfe32bbde6b47f263121e232.tar.gz
troggle-58f7cf72d48a89e3bfe32bbde6b47f263121e232.tar.bz2
troggle-58f7cf72d48a89e3bfe32bbde6b47f263121e232.zip
renaming confusing Class, step 1
Diffstat (limited to 'core/models/logbooks.py')
-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]