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
47d631d1
Commit
47d631d1
authored
4 years ago
by
Dan Nepejchal
Browse files
Options
Downloads
Patches
Plain Diff
Fix:
- Subpage, generated migration
parent
9bf2894e
No related branches found
No related tags found
2 merge requests
!161
release
,
!160
Fix:
Pipeline
#2088
passed
4 years ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
green_deal/migrations/0003_auto_20210107_1120.py
+379
-0
379 additions, 0 deletions
green_deal/migrations/0003_auto_20210107_1120.py
green_deal/models.py
+0
-14
0 additions, 14 deletions
green_deal/models.py
with
379 additions
and
14 deletions
green_deal/migrations/0003_auto_20210107_1120.py
0 → 100644
+
379
−
0
View file @
47d631d1
# Generated by Django 3.1.1 on 2021-01-07 10:20
import
datetime
import
wagtail.core.blocks
import
wagtail.core.fields
import
wagtail.images.blocks
from
django.db
import
migrations
from
django.utils.timezone
import
utc
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
green_deal
"
,
"
0002_auto_20201208_1435
"
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
"
greendealsubpage
"
,
name
=
"
matomo_id
"
,
),
migrations
.
RemoveField
(
model_name
=
"
greendealsubpage
"
,
name
=
"
top_menu
"
,
),
migrations
.
AlterField
(
model_name
=
"
greendealhomepage
"
,
name
=
"
content
"
,
field
=
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
text_2_columns
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
left_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
levý sloupec
"
,
),
),
(
"
right_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
pravý sloupec
"
,
),
),
]
),
),
(
"
text_1_column
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
header
"
,
wagtail
.
core
.
blocks
.
CharBlock
()),
(
"
text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
]
),
),
]
),
),
(
"
FAQ_columns
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
left_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
levý sloupec
"
,
),
),
(
"
faqs
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
question
"
,
wagtail
.
core
.
blocks
.
TextBlock
(),
),
(
"
answer
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(),
),
]
),
label
=
"
faq
"
,
),
),
]
),
),
(
"
news
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
header
"
,
wagtail
.
core
.
blocks
.
CharBlock
()),
(
"
perex
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
]
),
),
(
"
img
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
(
"
link
"
,
wagtail
.
core
.
blocks
.
URLBlock
()),
(
"
date
"
,
wagtail
.
core
.
blocks
.
DateBlock
(
default
=
datetime
.
datetime
(
2021
,
1
,
7
,
10
,
20
,
56
,
694472
,
tzinfo
=
utc
,
)
),
),
]
),
label
=
"
aktuality
"
,
),
),
],
blank
=
True
,
verbose_name
=
"
obsah stránky
"
,
),
),
migrations
.
AlterField
(
model_name
=
"
greendealsubpage
"
,
name
=
"
content
"
,
field
=
wagtail
.
core
.
fields
.
StreamField
(
[
(
"
text_2_columns
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
left_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
levý sloupec
"
,
),
),
(
"
right_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
pravý sloupec
"
,
),
),
]
),
),
(
"
text_1_column
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
header
"
,
wagtail
.
core
.
blocks
.
CharBlock
()),
(
"
text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
]
),
),
]
),
),
(
"
FAQ_columns
"
,
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
left_text
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
],
label
=
"
levý sloupec
"
,
),
),
(
"
faqs
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
question
"
,
wagtail
.
core
.
blocks
.
TextBlock
(),
),
(
"
answer
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(),
),
]
),
label
=
"
faq
"
,
),
),
]
),
),
(
"
news
"
,
wagtail
.
core
.
blocks
.
ListBlock
(
wagtail
.
core
.
blocks
.
StructBlock
(
[
(
"
header
"
,
wagtail
.
core
.
blocks
.
CharBlock
()),
(
"
perex
"
,
wagtail
.
core
.
blocks
.
RichTextBlock
(
features
=
[
"
h2
"
,
"
h3
"
,
"
h4
"
,
"
h5
"
,
"
bold
"
,
"
italic
"
,
"
ol
"
,
"
ul
"
,
"
hr
"
,
"
link
"
,
"
document-link
"
,
"
image
"
,
]
),
),
(
"
img
"
,
wagtail
.
images
.
blocks
.
ImageChooserBlock
()),
(
"
link
"
,
wagtail
.
core
.
blocks
.
URLBlock
()),
(
"
date
"
,
wagtail
.
core
.
blocks
.
DateBlock
(
default
=
datetime
.
datetime
(
2021
,
1
,
7
,
10
,
20
,
56
,
694472
,
tzinfo
=
utc
,
)
),
),
]
),
label
=
"
aktuality
"
,
),
),
],
blank
=
True
,
verbose_name
=
"
obsah stránky
"
,
),
),
]
This diff is collapsed.
Click to expand it.
green_deal/models.py
+
0
−
14
View file @
47d631d1
...
...
@@ -154,15 +154,6 @@ class GreenDealSubPage(Page, MetadataPageMixin):
verbose_name
=
"
obsah stránky
"
,
blank
=
True
,
)
# settings
matomo_id
=
models
.
IntegerField
(
"
Matomo ID pro sledování návštěvnosti
"
,
blank
=
True
,
null
=
True
)
top_menu
=
StreamField
(
[(
"
item
"
,
MenuItemBlock
())],
verbose_name
=
"
horní menu
"
,
blank
=
True
,
)
### PANELS
...
...
@@ -182,11 +173,6 @@ class GreenDealSubPage(Page, MetadataPageMixin):
),
]
settings_panels
=
[
FieldPanel
(
"
matomo_id
"
),
StreamFieldPanel
(
"
top_menu
"
),
]
### RELATIONS
subpage_types
=
[
...
...
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