improved excel formatting

This commit is contained in:
2025-11-23 12:32:12 +01:00
parent cbdf49adfd
commit bb634d28ed
2 changed files with 25 additions and 19 deletions

View File

@@ -114,14 +114,14 @@ class HourBuildingLegFlight(HourBuildingLegBase):
verbose_name = "Flight leg"
verbose_name_plural = "Flight legs"
def __str__(self):
return f"{self.departure} -> {self.destination}"
def save(self, *args, **kwargs):
self.departure = self.departure.upper().strip()
self.destination = self.destination.upper().strip()
super().save(*args, **kwargs)
def __str__(self):
return f"{self.departure} -> {self.destination}"
class HourBuildingLegStop(HourBuildingLegBase):
refuel = models.BooleanField(