31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 5.0.3 on 2024-04-02 23:32
|
|
|
|
import django.db.models.deletion
|
|
import wagtail.blocks
|
|
import wagtail.fields
|
|
import wagtail.images.blocks
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('home', '0003_event'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Association',
|
|
fields=[
|
|
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
|
|
('body', wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='title')), ('paragraph', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock())])),
|
|
('association_type', models.CharField(choices=[('forening', 'Forening'), ('utvalg', 'Utvalg')], default='forening', max_length=64)),
|
|
('url', models.URLField()),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
]
|