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

Commit

Permalink
Merge pull request #133 from WordPress/set_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Jul 8, 2021
2 parents dbe75fa + 90cab8f commit be6df89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openverse-api/catalog/api/migrations/0032_audio_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Migration(migrations.Migration):
('tags', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)),
('tags_list', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, null=True, size=None)),
('meta_data', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)),
('set_position', models.IntegerField(blank=True, help_text='Ordering of the audio in the set.', null=True)),
('audio_set_position', models.IntegerField(blank=True, help_text='Ordering of the audio in the set.', null=True)),
('genres', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(blank=True, max_length=80), db_index=True, help_text='The artistic style of this audio file, eg. hip-hop (music) / tech (podcasts).', null=True, size=None)),
('category', models.CharField(blank=True, db_index=True, help_text='The category of this audio file, eg. music, podcast, news & audiobook.', max_length=80, null=True)),
('duration', models.IntegerField(blank=True, help_text='The time length of the audio file in milliseconds.', null=True)),
Expand Down Expand Up @@ -121,7 +121,7 @@ class Migration(migrations.Migration):
),
migrations.AddField(
model_name='audio',
name='set',
name='audio_set',
field=models.ForeignKey(blank=True, help_text='Reference to set of which this track is a part.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.AudioSet'),
),
]
4 changes: 2 additions & 2 deletions openverse-api/catalog/api/models/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class AudioSet(IdentifierMixin, MediaMixin, FileMixin, OpenLedgerModel):


class Audio(AbstractMedia):
set = models.ForeignKey(
audio_set = models.ForeignKey(
help_text='Reference to set of which this track is a part.',
to=AudioSet,
on_delete=models.SET_NULL,
null=True,
blank=True,
)
set_position = models.IntegerField(
audio_set_position = models.IntegerField(
blank=True,
null=True,
help_text='Ordering of the audio in the set.'
Expand Down

0 comments on commit be6df89

Please sign in to comment.