]> git.0d.be Git - django-panik-nonstop.git/commitdiff
add jingle model
authorFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 12:38:23 +0000 (13:38 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 12:38:23 +0000 (13:38 +0100)
nonstop/migrations/0011_auto_20200106_1337.py [new file with mode: 0644]
nonstop/migrations/0012_jingle.py [new file with mode: 0644]
nonstop/models.py

diff --git a/nonstop/migrations/0011_auto_20200106_1337.py b/nonstop/migrations/0011_auto_20200106_1337.py
new file mode 100644 (file)
index 0000000..ed2b842
--- /dev/null
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.24 on 2020-01-06 13:37
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('nonstop', '0010_track_duration'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='somalogline',
+            name='on_air',
+            field=models.NullBooleanField(verbose_name='On Air'),
+        ),
+        migrations.AlterField(
+            model_name='track',
+            name='cfwb',
+            field=models.BooleanField(default=False, verbose_name='CFWB'),
+        ),
+        migrations.AlterField(
+            model_name='track',
+            name='language',
+            field=models.CharField(blank=True, choices=[('en', 'English'), ('fr', 'French'), ('nl', 'Dutch')], max_length=3),
+        ),
+        migrations.AlterField(
+            model_name='track',
+            name='sabam',
+            field=models.BooleanField(default=True, verbose_name='SABAM'),
+        ),
+    ]
diff --git a/nonstop/migrations/0012_jingle.py b/nonstop/migrations/0012_jingle.py
new file mode 100644 (file)
index 0000000..72a4e02
--- /dev/null
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.24 on 2020-01-06 13:38
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('nonstop', '0011_auto_20200106_1337'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Jingle',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('label', models.CharField(max_length=100, verbose_name='Label')),
+                ('filepath', models.CharField(max_length=255, verbose_name='File Path')),
+                ('duration', models.DurationField(null=True, verbose_name='Duration')),
+            ],
+            options={
+                'verbose_name': 'Jingle',
+                'verbose_name_plural': 'Jingles',
+            },
+        ),
+    ]
index c4a7b6ee01ba5b87d8c556ea77d9067caf8dd89e..00156cdc3f82e7d8ec15c60514fef77c90e28154 100644 (file)
@@ -149,3 +149,13 @@ class SomaLogLine(models.Model):
     filepath = models.ForeignKey(NonstopFile)
     play_timestamp = models.DateTimeField()
     on_air = models.NullBooleanField('On Air')
+
+
+class Jingle(models.Model):
+    class Meta:
+        verbose_name = _('Jingle')
+        verbose_name_plural = _('Jingles')
+
+    label = models.CharField(_('Label'), max_length=100)
+    filepath = models.CharField(_('File Path'), max_length=255)
+    duration = models.DurationField(_('Duration'), null=True)