1
0
clubhaus-schornbach/clubhaus/homepage/migrations/0024_eventbackground_clubhausevent_background_picture.py

28 lines
921 B
Python
Raw Normal View History

2023-07-24 20:26:54 +02:00
# Generated by Django 4.2 on 2023-04-30 18:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0023_setting_unique_name'),
]
operations = [
migrations.CreateModel(
name='EventBackground',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=200)),
('picture', models.ImageField(blank=True, upload_to='event_backgrounds/')),
],
),
migrations.AddField(
model_name='clubhausevent',
name='background_picture',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='homepage.eventbackground'),
),
]