mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 18:05:25 +02:00
Initial commit that merge both the front end and the API in the same repository
This commit is contained in:
commit
76f98b74dd
285 changed files with 51318 additions and 0 deletions
42
api/funkwhale_api/radios/migrations/0001_initial.py
Normal file
42
api/funkwhale_api/radios/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,42 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('music', '0004_track_tags'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='RadioSession',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||
('radio_type', models.CharField(max_length=50)),
|
||||
('creation_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
('user', models.ForeignKey(related_name='radio_sessions', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='RadioSessionTrack',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||
('position', models.IntegerField(default=1)),
|
||||
('session', models.ForeignKey(to='radios.RadioSession', related_name='session_tracks')),
|
||||
('track', models.ForeignKey(to='music.Track', related_name='radio_session_tracks')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('session', 'position'),
|
||||
},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='radiosessiontrack',
|
||||
unique_together=set([('session', 'position')]),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue