From acf0c342bf35f57131273e8bc1af8b2d350fe7c1 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 30 Apr 2026 17:37:21 -0400 Subject: [PATCH] [scrobbles] Rename tag fields --- vrobbler/apps/books/models.py | 4 ++-- vrobbler/apps/podcasts/models.py | 2 +- vrobbler/apps/scrobbles/mixins.py | 4 ++-- vrobbler/apps/scrobbles/models.py | 2 +- vrobbler/apps/videos/models.py | 4 ++-- vrobbler/apps/webpages/models.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/vrobbler/apps/books/models.py b/vrobbler/apps/books/models.py index 6e85c3d..c928352 100644 --- a/vrobbler/apps/books/models.py +++ b/vrobbler/apps/books/models.py @@ -170,7 +170,7 @@ class Book(LongPlayScrobblableMixin): ) summary = models.TextField(**BNULL) - genre = TaggableManager(through=ObjectWithGenres) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") def __str__(self) -> str: if self.issue_number and "Issue" not in str(self.title): @@ -516,7 +516,7 @@ class Paper(LongPlayScrobblableMixin): tldr = models.CharField(max_length=255, **BNULL) openaccess_pdf_url = models.CharField(max_length=255, **BNULL) - genre = TaggableManager(through=ObjectWithGenres) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") @classmethod def get_from_semantic(cls, title: str, overwrite: bool = False) -> "Paper": diff --git a/vrobbler/apps/podcasts/models.py b/vrobbler/apps/podcasts/models.py index 27b58cf..d15c521 100644 --- a/vrobbler/apps/podcasts/models.py +++ b/vrobbler/apps/podcasts/models.py @@ -50,7 +50,7 @@ class Podcast(TimeStampedModel): cover_image = models.ImageField(upload_to="podcasts/covers/", **BNULL) itunes_id = models.TextField(max_length=15, **BNULL) dead_date = models.DateField(**BNULL) - genre = TaggableManager(through=ObjectWithGenres) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") def __str__(self): return f"{self.name}" diff --git a/vrobbler/apps/scrobbles/mixins.py b/vrobbler/apps/scrobbles/mixins.py index c4b413f..47cf2e4 100644 --- a/vrobbler/apps/scrobbles/mixins.py +++ b/vrobbler/apps/scrobbles/mixins.py @@ -59,8 +59,8 @@ class ScrobblableMixin(TimeStampedModel): title = models.CharField(max_length=255, **BNULL) base_run_time_seconds = models.IntegerField(**BNULL) - genre = TaggableManager(through=ObjectWithGenres, blank=True) - tags = TaggableManager(blank=True) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") + tags = TaggableManager(blank=True, verbose_name="Tags") class Meta: abstract = True diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 2b0be00..5526456 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -450,7 +450,7 @@ class Scrobble(TimeStampedModel): decoder=logdata.ScrobbleLogDataDecoder, ) timezone = models.CharField(max_length=50, **BNULL) - tags = TaggableManager(blank=True) + tags = TaggableManager(blank=True, verbose_name="Tags") # Fields for keeping track of video game data videogame_save_data = models.FileField( diff --git a/vrobbler/apps/videos/models.py b/vrobbler/apps/videos/models.py index cd908ab..17cf9ce 100644 --- a/vrobbler/apps/videos/models.py +++ b/vrobbler/apps/videos/models.py @@ -57,7 +57,7 @@ class Channel(ScrobblableMixin): ) youtube_id = models.CharField(max_length=255, **BNULL) twitch_id = models.CharField(max_length=255, **BNULL) - genre = TaggableManager(through=ObjectWithGenres) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") class Meta: verbose_name_plural = "channels" @@ -163,7 +163,7 @@ class Series(TimeStampedModel): ) preferred_source = models.CharField(max_length=100, **BNULL) - genre = TaggableManager(through=ObjectWithGenres) + genre = TaggableManager(through=ObjectWithGenres, blank=True, verbose_name="Genre") class Meta: verbose_name_plural = "series" diff --git a/vrobbler/apps/webpages/models.py b/vrobbler/apps/webpages/models.py index 89b37e5..ab55f1f 100644 --- a/vrobbler/apps/webpages/models.py +++ b/vrobbler/apps/webpages/models.py @@ -29,7 +29,7 @@ class Domain(TimeStampedModel): root = models.CharField(max_length=255) name = models.CharField(max_length=255, **BNULL) - tags = TaggableManager(blank=True) + tags = TaggableManager(blank=True, verbose_name="Tags") def __str__(self) -> str: if self.name: