[scrobbles] Rename tag fields
All checks were successful
build & deploy / test (push) Successful in 2m8s
build & deploy / deploy (push) Successful in 25s

This commit is contained in:
2026-04-30 17:37:21 -04:00
parent f486b1614b
commit acf0c342bf
6 changed files with 9 additions and 9 deletions

View File

@ -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":

View File

@ -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}"

View File

@ -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

View File

@ -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(

View File

@ -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"

View File

@ -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: