Improve HTML on profile and game details

This commit is contained in:
Joakim Hellsén 2025-08-04 00:01:34 +02:00
commit 2ff314ecc8
10 changed files with 60 additions and 16 deletions

View file

@ -216,4 +216,8 @@ class NotificationSubscription(models.Model):
]
def __str__(self) -> str:
return f"{self.user} subscription to {Game.display_name}"
if self.game:
return f"{self.user} subscription to game: {self.game.display_name}"
if self.organization:
return f"{self.user} subscription to organization: {self.organization.name}"
return f"{self.user} subscription"