website/www/podjango/apps/cast/migrations/0001_initial.py
Ben Sturmfels c0acfde9c3
Merge FAIF "podjango" codebase into main sfconservancy.org site
It's a little awkward for now with podjango also having an "apps" module, but we
can clean that up later. I've excluded any JS and HTML that's likely not
required.

To accomodate this merging, I moved the templates into a "podjango" subdirectory
and, added a "podjango" namespace to the URLconf and converted a bunch of
hard-coded links to use the "url" template tag since there will now be a
"/faif/" prefix.
2023-10-05 19:26:42 +11:00

50 lines
2.6 KiB
Python

# Generated by Django 3.2.19 on 2023-09-21 08:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CastTag',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('label', models.CharField(max_length=100)),
('slug', models.SlugField()),
],
options={
'db_table': 'cast_tags',
},
),
migrations.CreateModel(
name='Cast',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('slug', models.SlugField(unique=True)),
('summary', models.TextField(help_text='Use raw HTML. This summary is not included at the beginning of the body when the entry is displayed. It used only for the material on the front page.')),
('body', models.TextField(help_text='Use raw HTML. Include the full body of any show notes or other information about this episode. It will be labelled on the site as Show Notes. It is included on the detail entry, and in the description data on the cast RSS feed.')),
('pub_date', models.DateTimeField()),
('ogg_path', models.CharField(blank=True, help_text='Local filename of the Ogg file, relative to webroot. File should be uploaded into the static media area for casts.', max_length=300)),
('mp3_path', models.CharField(blank=True, help_text='Local filename of the mp3 file, relative to webroot. File should be uploaded into the static media area for casts.', max_length=300)),
('ogg_length', models.IntegerField(help_text='size in bytes of ogg file')),
('mp3_length', models.IntegerField(help_text='size in bytes of mp3 file')),
('duration', models.CharField(help_text='length in hh:mm:ss of mp3 file', max_length=8)),
('date_created', models.DateTimeField(auto_now_add=True)),
('date_last_modified', models.DateTimeField(auto_now=True)),
('tags', models.ManyToManyField(blank=True, to='cast.CastTag')),
],
options={
'verbose_name_plural': 'casts',
'db_table': 'casts_entries',
'ordering': ('-pub_date',),
'get_latest_by': 'pub_date',
},
),
]