diff --git a/backend/fleets/models.py b/backend/fleets/models.py index 9af8f7c5..cf80ad51 100644 --- a/backend/fleets/models.py +++ b/backend/fleets/models.py @@ -34,6 +34,9 @@ class EveFleet(models.Model): ) location = models.CharField(max_length=255, blank=True) + def __str__(self): + return f"{self.created_by} - {self.type} - {self.start_time}" + class EveFleetInstance(models.Model): """ @@ -83,6 +86,9 @@ class EveFleetNotificationChannel(models.Model): discord_channel_name = models.CharField(max_length=255) group = models.ForeignKey(Group, on_delete=models.CASCADE) + def __str__(self): + return f"{self.group} - {self.discord_channel_name}" + class EveFleetNotification(models.Model): """