Add support for solo flights

This commit is contained in:
Ian Adam Naval 2019-04-01 20:52:55 -04:00
parent 78abd79962
commit 357f02daba

View File

@ -24,9 +24,17 @@ class Reservation(object):
title = "Ground School"
return title
@property
def lesson_suffix(self):
if self.instructor:
suffix = f"with {self.instructor}"
else:
suffix = "Solo"
return suffix
@property
def summary(self):
return f"{self.lesson_title} with {self.instructor}"
return f"{self.lesson_title} {self.lesson_suffix}"
@property
def description(self):