[scrobbles] Rename tag fields
This commit is contained in:
@ -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":
|
||||
|
||||
@ -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}"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user