Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix CI issues is audio models #124

Merged
merged 2 commits into from
Jul 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Migration(migrations.Migration):

dependencies = [
('api', '0030_help_text'),
('api', '0031_auto_20210604_1825'),
]

operations = [
Expand Down
7 changes: 5 additions & 2 deletions openverse-api/catalog/api/models/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __str__(self):
def __repr__(self):
return str(self)


class AudioSet(IdentifierMixin, MediaMixin, FileMixin, OpenLedgerModel):
"""
This is an ordered collection of audio files, such as a podcast series or
Expand Down Expand Up @@ -74,14 +75,16 @@ class Audio(AbstractMedia):
),
null=True,
db_index=True,
help_text='The artistic style of this audio file, eg. hip-hop (music) / tech (podcasts).',
help_text='The artistic style of this audio file, '
'eg. hip-hop (music) / tech (podcasts).',
)
category = models.CharField(
max_length=80,
blank=True,
null=True,
db_index=True,
help_text='The category of this audio file, eg. music, podcast, news & audiobook.',
help_text='The category of this audio file, '
'eg. music, podcast, news & audiobook.',
)

duration = models.IntegerField(
Expand Down