Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
d1cfe6ea
Commit
d1cfe6ea
authored
3 years ago
by
Ondrej Rehounek
Browse files
Options
Downloads
Patches
Plain Diff
region: Migs
parent
94ddb56a
No related branches found
No related tags found
2 merge requests
!418
Release
,
!414
district and region modules
Pipeline
#6242
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/migrations/0028_alter_districthomepage_subheader.py
+72
-0
72 additions, 0 deletions
district/migrations/0028_alter_districthomepage_subheader.py
region/migrations/0005_auto_20211128_1152.py
+880
-0
880 additions, 0 deletions
region/migrations/0005_auto_20211128_1152.py
with
952 additions
and
0 deletions
district/migrations/0028_alter_districthomepage_subheader.py
0 → 100644
+
72
−
0
View file @
d1cfe6ea
# Generated by Django 3.2.8 on 2021-11-28 10:52
import
wagtail.core.blocks
import
wagtail.core.fields
import
wagtail.images.blocks
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
district
"
,
"
0027_auto_20211121_0902
"
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
"
districthomepage
"
,
name
=
"
subheader
"
,
field
=
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
header_simple
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
subtitle
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Podtitulek
"
,
required
=
False
),
),
(
"
image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
]
),
),
(
"
header
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
help_text
=
"
Nap
"
,
label
=
"
Titulek
"
,
required
=
False
),
),
(
"
image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
(
"
button_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text tlačítka
"
,
required
=
False
),
),
(
"
button_link
"
,
wagtail
.
core
.
blocks
.
URLBlock
(
label
=
"
Odkaz tlačítka
"
,
required
=
False
),
),
]
),
),
],
blank
=
True
,
verbose_name
=
"
Blok pod headerem
"
,
),
),
]
This diff is collapsed.
Click to expand it.
region/migrations/0005_auto_20211128_1152.py
0 → 100644
+
880
−
0
View file @
d1cfe6ea
# Generated by Django 3.2.8 on 2021-11-28 10:52
import
django.db.models.deletion
import
modelcluster.fields
import
wagtail.core.blocks
import
wagtail.core.fields
import
wagtail.images.blocks
import
wagtailmetadata.models
from
django.db
import
migrations
,
models
import
shared.models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
calendar_utils
"
,
"
0002_auto_20200523_0243
"
),
(
"
taggit
"
,
"
0003_taggeditem_add_unique_index
"
),
(
"
wagtailimages
"
,
"
0023_add_choose_permissions
"
),
(
"
wagtailcore
"
,
"
0062_comment_models_and_pagesubscription
"
),
(
"
region
"
,
"
0004_auto_20211112_1349
"
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
"
regionhomepage
"
,
name
=
"
content
"
,
),
migrations
.
AddField
(
model_name
=
"
regionarticlepage
"
,
name
=
"
author_page
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
"
region.regionpersonpage
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionarticlepage
"
,
name
=
"
is_black
"
,
field
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
"
Má tmavé pozadí?
"
),
),
migrations
.
AddField
(
model_name
=
"
regionhomepage
"
,
name
=
"
election_countdown_datetime
"
,
field
=
models
.
DateTimeField
(
blank
=
True
,
help_text
=
"
Pro skrytí nechte nevyplněné
"
,
null
=
True
,
verbose_name
=
"
Datum a čas pro odpočet do voleb
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionhomepage
"
,
name
=
"
fallback_image
"
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
wagtailimages.image
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionhomepage
"
,
name
=
"
show_calendar_on_hp
"
,
field
=
models
.
BooleanField
(
default
=
True
,
verbose_name
=
"
Zobrazit kalendář dole na homepage
"
),
),
migrations
.
AddField
(
model_name
=
"
regionhomepage
"
,
name
=
"
subheader
"
,
field
=
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
header_simple
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
subtitle
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Podtitulek
"
,
required
=
False
),
),
(
"
image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
]
),
),
(
"
header
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
help_text
=
"
Nap
"
,
label
=
"
Titulek
"
,
required
=
False
),
),
(
"
image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
(
"
button_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text tlačítka
"
,
required
=
False
),
),
(
"
button_link
"
,
wagtail
.
core
.
blocks
.
URLBlock
(
label
=
"
Odkaz tlačítka
"
,
required
=
False
),
),
]
),
),
],
blank
=
True
,
verbose_name
=
"
Blok pod headerem
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpeoplepage
"
,
name
=
"
content
"
,
field
=
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
people_group
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
group_title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
person_list
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
PageChooserBlock
(
label
=
"
Osoba
"
,
page_type
=
[
"
region.RegionPersonPage
"
],
),
label
=
"
List osob
"
,
),
),
]
),
)
],
blank
=
True
,
verbose_name
=
"
Obsah stránky
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
age
"
,
field
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Věk
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
background_photo
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
wagtailimages.image
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
city
"
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
64
,
null
=
True
,
verbose_name
=
"
Město/obec
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
email
"
,
field
=
models
.
EmailField
(
blank
=
True
,
max_length
=
254
,
null
=
True
,
verbose_name
=
"
Email
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
facebook_url
"
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Odkaz na Facebook
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
flickr_url
"
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Odkaz na Flickr
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
instagram_url
"
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Odkaz na Instagram
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
is_pirate
"
,
field
=
models
.
BooleanField
(
default
=
True
,
verbose_name
=
"
Je členem Pirátské strany?
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
job
"
,
field
=
models
.
CharField
(
blank
=
True
,
help_text
=
"
Např.
'
Informatik
'"
,
max_length
=
64
,
null
=
True
,
verbose_name
=
"
Povolání
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
job_function
"
,
field
=
models
.
CharField
(
blank
=
True
,
help_text
=
"
Např.
'
Předseda
'"
,
max_length
=
64
,
null
=
True
,
verbose_name
=
"
Funkce
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
phone
"
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
16
,
null
=
True
,
verbose_name
=
"
Telefon
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
profile_photo
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
wagtailimages.image
"
,
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
text
"
,
field
=
wagtail
.
core
.
fields
.
RichTextField
(
blank
=
True
,
verbose_name
=
"
text
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
twitter_url
"
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Odkaz na Twitter
"
),
),
migrations
.
AddField
(
model_name
=
"
regionpersonpage
"
,
name
=
"
youtube_url
"
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Odkaz na Youtube kanál
"
),
),
migrations
.
AlterField
(
model_name
=
"
regionhomepage
"
,
name
=
"
footperson_coord
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
region.regionpersonpage
"
,
verbose_name
=
"
Koordinátor
"
,
),
),
migrations
.
AlterField
(
model_name
=
"
regionhomepage
"
,
name
=
"
footperson_electman
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
region.regionpersonpage
"
,
verbose_name
=
"
Volební manažer
"
,
),
),
migrations
.
AlterField
(
model_name
=
"
regionhomepage
"
,
name
=
"
footperson_media
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
region.regionpersonpage
"
,
verbose_name
=
"
Kontakt pro média
"
,
),
),
migrations
.
CreateModel
(
name
=
"
RegionProgramPage
"
,
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
"
,
),
),
(
"
perex
"
,
models
.
TextField
(
blank
=
True
,
verbose_name
=
"
Perex
"
)),
(
"
content
"
,
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
static_program_block
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
headline
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek bloku
"
,
required
=
True
),
),
(
"
perex
"
,
wagtail
.
core
.
blocks
.
TextBlock
(
label
=
"
Krátký text pod nadpisem
"
,
required
=
True
,
),
),
(
"
completion_percentage
"
,
wagtail
.
core
.
blocks
.
IntegerBlock
(
label
=
"
Procento dokončení
"
,
required
=
True
,
),
),
(
"
program_items
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Název
"
,
required
=
True
,
),
),
(
"
completion_percentage
"
,
wagtail
.
core
.
blocks
.
IntegerBlock
(
label
=
"
Procento dokončení
"
,
required
=
True
,
),
),
]
)
),
),
(
"
person
"
,
wagtail
.
core
.
blocks
.
PageChooserBlock
(
label
=
"
Garant
"
,
page_type
=
[
"
region.RegionPersonPage
"
],
),
),
]
),
),
(
"
redmine_program_block
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
headline
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek bloku
"
,
required
=
True
),
),
(
"
perex
"
,
wagtail
.
core
.
blocks
.
TextBlock
(
label
=
"
Krátký text pod nadpisem
"
,
required
=
True
,
),
),
(
"
person
"
,
wagtail
.
core
.
blocks
.
PageChooserBlock
(
label
=
"
Garant
"
,
page_type
=
[
"
region.RegionPersonPage
"
],
),
),
(
"
redmine_issue
"
,
wagtail
.
core
.
blocks
.
IntegerBlock
(
label
=
"
Číslo Redmine issue
"
,
required
=
True
,
),
),
]
),
),
],
blank
=
True
,
verbose_name
=
"
obsah stránky
"
,
),
),
(
"
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
"
:
"
Program
"
,
},
bases
=
(
shared
.
models
.
SubpageMixin
,
wagtailmetadata
.
models
.
WagtailImageMetadataMixin
,
"
wagtailcore.page
"
,
models
.
Model
,
),
),
migrations
.
CreateModel
(
name
=
"
RegionPersonTag
"
,
fields
=
[
(
"
id
"
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
"
ID
"
,
),
),
(
"
content_object
"
,
modelcluster
.
fields
.
ParentalKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
"
region.regionpersonpage
"
,
),
),
(
"
tag
"
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
"
region_regionpersontag_items
"
,
to
=
"
taggit.tag
"
,
),
),
],
options
=
{
"
abstract
"
:
False
,
},
),
migrations
.
CreateModel
(
name
=
"
RegionElectionPointPage
"
,
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
"
,
),
),
(
"
text
"
,
wagtail
.
core
.
fields
.
RichTextField
(
blank
=
True
,
verbose_name
=
"
text
"
),
),
(
"
perex
"
,
models
.
TextField
(
help_text
=
"
Pro přehled volebního programu
"
,
verbose_name
=
"
Perex
"
),
),
(
"
guarantor
"
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
to
=
"
region.regionpersonpage
"
,
),
),
(
"
list_image
"
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
wagtailimages.image
"
,
),
),
(
"
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
"
:
"
Bod programu voleb
"
,
},
bases
=
(
shared
.
models
.
SubpageMixin
,
wagtailmetadata
.
models
.
WagtailImageMetadataMixin
,
"
wagtailcore.page
"
,
models
.
Model
,
),
),
migrations
.
CreateModel
(
name
=
"
RegionElectionPage
"
,
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
"
,
),
),
(
"
header
"
,
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
election_header_block
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
flag_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text ve
'
vlajce
'"
,
max_length
=
32
,
required
=
False
,
),
),
(
"
motto
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Motto (podnadpis)
"
,
max_length
=
128
,
required
=
False
,
),
),
(
"
image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
(
label
=
"
Obrázek (kandidátů)
"
,
required
=
False
,
),
),
(
"
background_image
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
(
label
=
"
Obrázek na pozadí
"
,
required
=
True
),
),
(
"
button_list
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
button_link
"
,
wagtail
.
core
.
blocks
.
URLBlock
(
label
=
"
Odkaz
"
,
max_length
=
64
,
),
),
(
"
button_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text
"
),
),
]
),
label
=
"
Call to action tlačítka
"
,
),
),
]
),
)
],
blank
=
True
,
verbose_name
=
"
Obsah headeru
"
,
),
),
(
"
content
"
,
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
candidate_list
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
call_to_action_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text
'
call-to-action
'
baneru
"
),
),
(
"
call_to_action_link
"
,
wagtail
.
core
.
blocks
.
URLBlock
(
label
=
"
Odkaz
'
call-to-action
'
baneru
"
,
required
=
False
,
),
),
(
"
call_to_action_button_text
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Text tlačítka
'
call-to-action
'
baneru
"
,
max_length
=
24
,
required
=
False
,
),
),
(
"
candidate_list
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
PageChooserBlock
(
label
=
"
Osoba
"
,
page_type
=
[
"
region.RegionPersonPage
"
],
),
label
=
"
Kandidáti
"
,
),
),
]
),
)
],
blank
=
True
,
verbose_name
=
"
Obsah stránky
"
,
),
),
(
"
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
"
:
"
Volební rozcestník
"
,
},
bases
=
(
shared
.
models
.
SubpageMixin
,
wagtailmetadata
.
models
.
WagtailImageMetadataMixin
,
"
wagtailcore.page
"
,
models
.
Model
,
),
),
migrations
.
CreateModel
(
name
=
"
RegionCenterPage
"
,
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
"
,
),
),
(
"
perex
"
,
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Perex
"
),
),
(
"
text
"
,
wagtail
.
core
.
fields
.
RichTextField
(
null
=
True
,
verbose_name
=
"
Text
"
),
),
(
"
sidebar_content
"
,
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
address
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
embed_map
"
,
wagtail
.
core
.
blocks
.
URLBlock
(
help_text
=
"
Hodnota
'
src
'
v <iframe>
"
,
label
=
"
Odkaz na embed mapku
"
,
required
=
False
,
),
),
(
"
address
"
,
wagtail
.
core
.
blocks
.
TextBlock
(
label
=
"
Adresa
"
,
required
=
True
),
),
(
"
address_info
"
,
wagtail
.
core
.
blocks
.
TextBlock
(
label
=
"
Info k adrese
"
,
required
=
False
),
),
]
),
),
(
"
contact
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
title
"
,
wagtail
.
core
.
blocks
.
CharBlock
(
label
=
"
Titulek
"
,
required
=
True
),
),
(
"
contact_list
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
PageChooserBlock
(
label
=
"
Osoba
"
,
page_type
=
[
"
region.RegionPersonPage
"
],
),
label
=
"
List kontaktů
"
,
),
),
]
),
),
],
blank
=
True
,
verbose_name
=
"
Obsah bočního panelu
"
,
),
),
(
"
background_photo
"
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
+
"
,
to
=
"
wagtailimages.image
"
,
),
),
(
"
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 pirátského centra
"
,
},
bases
=
(
shared
.
models
.
SubpageMixin
,
wagtailmetadata
.
models
.
WagtailImageMetadataMixin
,
"
wagtailcore.page
"
,
models
.
Model
,
),
),
migrations
.
CreateModel
(
name
=
"
RegionAfterElectionPage
"
,
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
"
,
),
),
(
"
text
"
,
wagtail
.
core
.
fields
.
RichTextField
(
blank
=
True
,
verbose_name
=
"
text
"
),
),
(
"
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
"
:
"
Povolební strategie
"
,
},
bases
=
(
shared
.
models
.
SubpageMixin
,
wagtailmetadata
.
models
.
WagtailImageMetadataMixin
,
"
wagtailcore.page
"
,
models
.
Model
,
),
),
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment