diff options
Diffstat (limited to 'bak/unused_apps/recordings/migrations/0001_initial.py')
-rw-r--r-- | bak/unused_apps/recordings/migrations/0001_initial.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bak/unused_apps/recordings/migrations/0001_initial.py b/bak/unused_apps/recordings/migrations/0001_initial.py new file mode 100644 index 0000000..d70b7dc --- /dev/null +++ b/bak/unused_apps/recordings/migrations/0001_initial.py @@ -0,0 +1,34 @@ +# Generated by Django 2.1.7 on 2019-03-25 14:12 + +import datetime +from django.db import migrations, models +import recordings.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Audio', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('subtitle', models.CharField(blank=True, max_length=200)), + ('slug', models.SlugField(blank=True, unique_for_date='pub_date')), + ('body_html', models.TextField(blank=True)), + ('body_markdown', models.TextField(blank=True)), + ('pub_date', models.DateTimeField(default=datetime.datetime.now)), + ('mp3', models.FileField(blank=True, null=True, upload_to=recordings.models.get_upload_path)), + ('ogg', models.FileField(blank=True, null=True, upload_to=recordings.models.get_upload_path)), + ], + options={ + 'get_latest_by': 'pub_date', + 'ordering': ('-pub_date',), + }, + ), + ] |