You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
# Generated by Django 3.2 on 2021-05-17 11:36
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Album',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('nazev', models.CharField(max_length=64, verbose_name='Název alba')),
|
|
('datum', models.DateTimeField(verbose_name='Datum+Čas')),
|
|
('obrazek', models.ImageField(upload_to='album', verbose_name='Obrázek')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Foto',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='galerie.album')),
|
|
],
|
|
),
|
|
]
|
|
|