Skip to content

Commit

Permalink
Add correct verbose_name and verbose_name_plural to Audio, DeletedAud…
Browse files Browse the repository at this point in the history
…io, and SensitiveAudio models
  • Loading branch information
dryruffian authored Sep 25, 2024
1 parent 8c27991 commit d2b24ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/api/models/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def get_or_create_waveform(self):

class Meta(AbstractMedia.Meta):
db_table = "audio"
verbose_name = "audio track"
verbose_name_plural = "audio tracks"

def get_absolute_url(self):
"""Enable the "View on site" link in the Django Admin."""
Expand Down Expand Up @@ -282,7 +284,8 @@ class DeletedAudio(AbstractDeletedMedia):
)

class Meta:
verbose_name_plural = "Deleted audio"
verbose_name = "deleted audio track"
verbose_name_plural = "deleted audio tracks"


class SensitiveAudio(AbstractSensitiveMedia):
Expand All @@ -309,7 +312,8 @@ class SensitiveAudio(AbstractSensitiveMedia):

class Meta:
db_table = "api_matureaudio"
verbose_name_plural = "Sensitive audio"
verbose_name = "sensitive audio track"
verbose_name_plural = "sensitive audio tracks"


class AudioReport(AbstractMediaReport):
Expand Down

0 comments on commit d2b24ac

Please sign in to comment.