Skip to content
# Generated by Django 4.1.5 on 2023-01-31 19:42
import django.db.models.deletion
import modelcluster.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0102_alter_districtarticlepage_content_and_more"),
]
operations = [
migrations.AlterField(
model_name="districtarticletag",
name="content_object",
field=modelcluster.fields.ParentalKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="tagged_items",
to="district.districtarticlepage",
),
),
migrations.AlterField(
model_name="districtpersontag",
name="content_object",
field=modelcluster.fields.ParentalKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="tagged_items",
to="district.districtpersonpage",
),
),
]
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
# Generated by Django 4.1.6 on 2023-02-28 07:51
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0105_alter_districtarticlepage_content"),
]
operations = [
migrations.AlterField(
model_name="districtcrossroadpage",
name="cards_content",
field=wagtail.fields.StreamField(
[
(
"cards",
wagtail.blocks.StructBlock(
[
(
"headline",
wagtail.blocks.CharBlock(
label="Titulek bloku", required=False
),
),
(
"card_items",
wagtail.blocks.ListBlock(
wagtail.blocks.StructBlock(
[
(
"image",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek"
),
),
(
"title",
wagtail.blocks.CharBlock(
label="Titulek", required=True
),
),
(
"text",
wagtail.blocks.RichTextBlock(
label="Krátký text pod nadpisem",
required=False,
),
),
(
"page",
wagtail.blocks.PageChooserBlock(
label="Stránka",
page_type=[
"district.DistrictArticlePage",
"district.DistrictArticlesPage",
"district.DistrictCenterPage",
"district.DistrictContactPage",
"district.DistrictCrossroadPage",
"district.DistrictCustomPage",
# "district.DistrictElectionCampaignPage",
# "district.DistrictElectionProgramPage",
# "district.DistrictElectionRootPage",
"district.DistrictPeoplePage",
"district.DistrictPersonPage",
# "district.DistrictPostElectionStrategyPage",
# "district.DistrictProgramPage",
],
required=False,
),
),
(
"link",
wagtail.blocks.URLBlock(
label="Odkaz", required=False
),
),
]
),
label="Karty s odkazy",
),
),
]
),
)
],
blank=True,
use_json_field=True,
verbose_name="Karty rozcestníku",
),
),
]
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
# Generated by Django 4.1.8 on 2023-04-24 22:33
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0108_alter_districtcenterpage_content_and_more"),
]
operations = [
migrations.AlterField(
model_name="districthomepage",
name="subheader",
field=wagtail.fields.StreamField(
[
(
"header_full_size",
wagtail.blocks.StructBlock(
[
(
"title",
wagtail.blocks.CharBlock(
label="Titulek", required=True
),
),
(
"image_background",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek v pozadí", required=True
),
),
(
"image_foreground",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek v popředí", required=False
),
),
(
"button_group",
wagtail.blocks.ListBlock(
wagtail.blocks.StructBlock(
[
(
"title",
wagtail.blocks.CharBlock(
label="Titulek",
max_length=128,
required=True,
),
),
(
"icon",
wagtail.blocks.CharBlock(
help_text="Identifikátor ikonky ze styleguide (https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons), např. ico--key.",
label="Ikonka",
max_length=128,
required=False,
),
),
(
"size",
wagtail.blocks.ChoiceBlock(
choices=[
("sm", "Malá"),
("base", "Střední"),
("lg", "Velká"),
],
label="Velikost",
),
),
(
"color",
wagtail.blocks.ChoiceBlock(
choices=[
("black", "Černá"),
("white", "Bílá"),
("grey-125", "Světle šedá"),
("blue-300", "Modrá"),
("cyan-200", "Tyrkysová"),
("green-400", "Zelené"),
("violet-400", "Vínová"),
("red-600", "Červená"),
],
label="Barva",
),
),
(
"hoveractive",
wagtail.blocks.BooleanBlock(
default=True,
help_text="Pokud je zapnuto, tlačítko mění barvu, když na něj uživatel najede myší.",
label="Animovat na hover",
required=False,
),
),
(
"mobile_fullwidth",
wagtail.blocks.BooleanBlock(
default=True,
help_text="Pokud je zapnuto, tlačítko se na mobilních zařízeních roztáhne na plnou šířku.",
label="Plná šířka na mobilních zařízeních",
required=False,
),
),
(
"page",
wagtail.blocks.PageChooserBlock(
label="Stránka", required=False
),
),
(
"link",
wagtail.blocks.URLBlock(
label="Odkaz", required=False
),
),
(
"align",
wagtail.blocks.ChoiceBlock(
choices=[
("auto", "Automaticky"),
("center", "Na střed"),
],
label="Zarovnání",
),
),
]
),
label="Tlačítka",
),
),
]
),
),
(
"header_simple",
wagtail.blocks.StructBlock(
[
(
"title",
wagtail.blocks.CharBlock(
label="Titulek", required=False
),
),
(
"subtitle",
wagtail.blocks.CharBlock(
label="Podtitulek", required=False
),
),
("image", wagtail.images.blocks.ImageChooserBlock()),
]
),
),
(
"header",
wagtail.blocks.StructBlock(
[
(
"title",
wagtail.blocks.CharBlock(
help_text="Nap", label="Titulek", required=False
),
),
("image", wagtail.images.blocks.ImageChooserBlock()),
(
"button_text",
wagtail.blocks.CharBlock(
label="Text tlačítka", required=False
),
),
(
"button_link",
wagtail.blocks.URLBlock(
label="Odkaz tlačítka", required=False
),
),
]
),
),
(
"hero_banner",
wagtail.blocks.StructBlock(
[
(
"sm_banner",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek pro zobrazení menší než 640px",
required=True,
),
),
(
"md_banner",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek pro zobrazení větší než 768px",
required=True,
),
),
(
"lg_banner",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek pro zobrazení větší než 1024px",
required=True,
),
),
(
"xl_banner",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek pro zobrazení větší než 1280px",
required=True,
),
),
(
"xxl_banner",
wagtail.images.blocks.ImageChooserBlock(
label="Obrázek pro zobrazení větší než 1536px",
required=True,
),
),
(
"title",
wagtail.blocks.CharBlock(
label="Titulek bloku", required=False
),
),
(
"subtitle",
wagtail.blocks.CharBlock(
label="Podtitulek", required=False
),
),
(
"button_text",
wagtail.blocks.CharBlock(
label="Text tlačítka", required=False
),
),
(
"button_link",
wagtail.blocks.URLBlock(
label="Odkaz tlačítka", required=False
),
),
]
),
),
],
blank=True,
use_json_field=True,
verbose_name="Blok pod headerem",
),
),
]
# Generated by Django 4.1.8 on 2023-04-27 18:52
import django.db.models.deletion
import wagtailmetadata.models
from django.db import migrations, models
import shared.models
class Migration(migrations.Migration):
dependencies = [
("calendar_utils", "0004_auto_20220505_1228"),
("wagtailcore", "0083_workflowcontenttype"),
("wagtailimages", "0025_alter_image_file_alter_rendition_file"),
("district", "0108_alter_districtcenterpage_content_and_more"),
]
operations = [
migrations.CreateModel(
name="DistrictCalendarPage",
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",
),
),
(
"calendar_url",
models.URLField(
blank=True,
null=True,
verbose_name="URL kalendáře ve formátu iCal",
),
),
(
"calendar",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
to="calendar_utils.calendar",
),
),
(
"search_image",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="wagtailimages.image",
verbose_name="Search image",
),
),
],
options={
"verbose_name": "Stránka s kalendářem",
},
bases=(
shared.models.SubpageMixin,
wagtailmetadata.models.WagtailImageMetadataMixin,
"wagtailcore.page",
models.Model,
),
),
migrations.AddField(
model_name="districtcenterpage",
name="calendar_page",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
to="district.districtcalendarpage",
verbose_name="Stránka s kalendářem",
),
),
migrations.AddField(
model_name="districthomepage",
name="calendar_page",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
to="district.districtcalendarpage",
verbose_name="Stránka s kalendářem",
),
),
]
# Generated by Django 4.1.8 on 2023-04-20 21:55
import wagtail.blocks
import wagtail.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0108_alter_districtcenterpage_content_and_more"),
]
operations = [
migrations.AddField(
model_name="districthomepage",
name="footer_links",
field=wagtail.fields.StreamField(
[
(
"footer_links",
wagtail.blocks.StructBlock(
[
(
"label",
wagtail.blocks.CharBlock(
label="Titulek zápatí", required=True
),
),
(
"items",
wagtail.blocks.ListBlock(
wagtail.blocks.StructBlock(
[
(
"url",
wagtail.blocks.URLBlock(
label="Odkaz"
),
),
(
"text",
wagtail.blocks.CharBlock(
label="Text v odkazu"
),
),
]
),
label="Odkazy",
required=True,
),
),
]
),
)
],
blank=True,
use_json_field=True,
verbose_name="Odkazy v zápatí webu",
),
),
]
# Generated by Django 4.1.8 on 2023-04-13 08:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("district", "0108_alter_districtcenterpage_content_and_more"),
]
operations = [
migrations.AddField(
model_name="districtpersonpage",
name="ical_calendar_url",
field=models.URLField(
blank=True,
help_text="Podporuje Mrak, Google Kalendář a další. Návod na synchronizaci najdeš na pi2.cz/kalendare",
max_length=256,
null=True,
verbose_name="iCal adresa kalendáře",
),
),
]
# Generated by Django 4.1.8 on 2023-05-01 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("district", "0109_alter_districthomepage_subheader"),
]
operations = [
migrations.AddField(
model_name="districtelectioncampaignpage",
name="campaign_funding_info",
field=models.URLField(
blank=True,
help_text="Pokud ponecháte prázdné, použije se buď odkaz z nadřazené stránky, nebo https://wiki.pirati.cz/ft/start.",
null=True,
verbose_name="URL pro zjištění informací o financování kampaně",
),
),
migrations.AddField(
model_name="districtelectionprogrampage",
name="campaign_funding_info",
field=models.URLField(
blank=True,
help_text="Pokud ponecháte prázdné, použije se buď odkaz z nadřazené stránky, nebo https://wiki.pirati.cz/ft/start.",
null=True,
verbose_name="URL pro zjištění informací o financování kampaně",
),
),
migrations.AddField(
model_name="districtpostelectionstrategypage",
name="campaign_funding_info",
field=models.URLField(
blank=True,
help_text="Pokud ponecháte prázdné, použije se buď odkaz z nadřazené stránky, nebo https://wiki.pirati.cz/ft/start.",
null=True,
verbose_name="URL pro zjištění informací o financování kampaně",
),
),
]
# Generated by Django 4.1.8 on 2023-05-01 14:58
import wagtail.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0109_alter_districthomepage_subheader"),
]
operations = [
migrations.AddField(
model_name="districthomepage",
name="footer_extra_content",
field=wagtail.fields.RichTextField(
blank=True, verbose_name="Extra obsah pod šedou patičkou"
),
),
]
# Generated by Django 4.1.8 on 2023-04-16 12:45
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("calendar_utils", "0004_auto_20220505_1228"),
("district", "0109_districtpersonpage_ical_calendar_url"),
]
operations = [
migrations.RemoveField(
model_name="districtpersonpage",
name="ical_calendar_url",
),
migrations.AddField(
model_name="districtpersonpage",
name="calendar",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
to="calendar_utils.calendar",
),
),
migrations.AddField(
model_name="districtpersonpage",
name="calendar_url",
field=models.URLField(
blank=True, null=True, verbose_name="URL kalendáře ve formátu iCal"
),
),
]
# Generated by Django 4.1.8 on 2023-05-02 14:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
(
"district",
"0110_districtelectioncampaignpage_campaign_funding_info_and_more",
),
("district", "0110_districthomepage_footer_extra_content"),
]
operations = []
Source diff could not be displayed: it is too large. Options to address this: view the blob.
# Generated by Django 4.1.8 on 2023-05-02 16:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0109_districthomepage_footer_links"),
("district", "0112_alter_districtcenterpage_content_and_more"),
]
operations = []
# Generated by Django 4.1.8 on 2023-05-02 19:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0110_remove_districtpersonpage_ical_calendar_url_and_more"),
("district", "0113_merge_20230502_1854"),
]
operations = []
Source diff could not be displayed: it is too large. Options to address this: view the blob.
# Generated by Django 4.1.8 on 2023-07-09 22:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("district", "0114_merge_20230502_2140"),
]
operations = [
migrations.AlterField(
model_name="districthomepage",
name="donation_page",
field=models.URLField(
blank=True,
default="https://dary.pirati.cz",
null=True,
verbose_name="URL pro příjem darů (tlačítko Darovat)",
),
),
]
# Generated by Django 4.1.8 on 2023-07-11 14:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0115_alter_districtcustompage_content_and_more"),
("district", "0115_alter_districthomepage_donation_page"),
]
operations = []