Files
@ af83b40af2fb
Branch filter:
Location: website/conservancy/podjango/migrations/0001_initial.py - annotation
af83b40af2fb
2.6 KiB
text/x-python
fossy: Add date hierarchy in admin
c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 ddb85bd8c1fb c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 c0acfde9c303 | # 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='CastTag')),
],
options={
'verbose_name_plural': 'casts',
'db_table': 'casts_entries',
'ordering': ('-pub_date',),
'get_latest_by': 'pub_date',
},
),
]
|