Show Hour building only at ATPL or DL (volo) students

This commit is contained in:
2025-12-05 17:58:51 +01:00
parent 84cf41535c
commit aeb3aa30ce
6 changed files with 42 additions and 6 deletions

View File

@@ -117,6 +117,8 @@ class HourBuildingLegFlight(HourBuildingLegBase):
def save(self, *args, **kwargs):
self.departure = self.departure.upper().strip()
self.destination = self.destination.upper().strip()
if self.pax:
self.pax = " ".join(c.capitalize() for c in self.pax.split())
super().save(*args, **kwargs)
def __str__(self):