28 lines
921 B
Python
28 lines
921 B
Python
|
# 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'),
|
||
|
),
|
||
|
]
|