[brickset] Little fix to scrobble of bricksets

This commit is contained in:
2025-06-09 10:40:12 -04:00
parent e980e3c5c9
commit 356e579558
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,12 @@ class BrickSet(LongPlayScrobblableMixin):
def get_absolute_url(self):
return reverse("bricksets:brickset_detail", kwargs={"slug": self.uuid})
def __str__(self) -> str:
name = str(self.title)
if not self.title:
name = str(self.number)
return name
@property
def logdata_cls(self):
return BrickSetLogData