cofsite: make club links optional

This commit is contained in:
Martin Pépin 2019-12-20 17:29:35 +01:00
parent d2ba9471da
commit 229b6e55f5
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 109 additions and 1 deletions

View file

@ -0,0 +1,107 @@
# Generated by Django 2.2.8 on 2019-12-20 16:22
import wagtail.core.blocks
import wagtail.core.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("cofcms", "0002_auto_20190523_1521"),
]
operations = [
migrations.AlterField(
model_name="cofdirectoryentrypage",
name="links",
field=wagtail.core.fields.StreamField(
[
(
"lien",
wagtail.core.blocks.StructBlock(
[
("url", wagtail.core.blocks.URLBlock(required=True)),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
(
"contact",
wagtail.core.blocks.StructBlock(
[
(
"email",
wagtail.core.blocks.EmailBlock(required=True),
),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
],
blank=True,
),
),
migrations.AlterField(
model_name="cofdirectoryentrypage",
name="links_en",
field=wagtail.core.fields.StreamField(
[
(
"lien",
wagtail.core.blocks.StructBlock(
[
("url", wagtail.core.blocks.URLBlock(required=True)),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
(
"contact",
wagtail.core.blocks.StructBlock(
[
(
"email",
wagtail.core.blocks.EmailBlock(required=True),
),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
],
blank=True,
null=True,
),
),
migrations.AlterField(
model_name="cofdirectoryentrypage",
name="links_fr",
field=wagtail.core.fields.StreamField(
[
(
"lien",
wagtail.core.blocks.StructBlock(
[
("url", wagtail.core.blocks.URLBlock(required=True)),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
(
"contact",
wagtail.core.blocks.StructBlock(
[
(
"email",
wagtail.core.blocks.EmailBlock(required=True),
),
("texte", wagtail.core.blocks.CharBlock()),
]
),
),
],
blank=True,
null=True,
),
),
]

View file

@ -182,7 +182,8 @@ class COFDirectoryEntryPage(Page):
]
),
),
]
],
blank=True,
)
image = models.ForeignKey(