add migrations

This commit is contained in:
2022-01-07 13:24:31 +00:00
parent 070af0a836
commit 2455b41770
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# Generated by Django 3.1.5 on 2022-01-07 11:21
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200, verbose_name='Titel')),
('slug', models.SlugField(blank=True, null=True, unique=True)),
('folder_name', models.CharField(max_length=200, verbose_name='Ordner Name')),
('thumbnail', models.CharField(blank=True, max_length=200, null=True, verbose_name='Thumbnail')),
('event_date', models.DateField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Event Datum')),
('photographer', models.CharField(blank=True, max_length=200, null=True, verbose_name='Fotograph(en)')),
('status', models.CharField(choices=[('10', 'DRAFT'), ('20', 'PUBLIC')], default='10', max_length=2)),
('description', models.TextField(blank=True, null=True)),
],
options={
'verbose_name': 'Album',
'verbose_name_plural': 'Alben',
},
),
]

View File