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
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
hemp
Maják
Commits
9ed9c956
Commit
9ed9c956
authored
4 years ago
by
jarmil
Browse files
Options
Downloads
Patches
Plain Diff
Black applied
parent
b9f0a665
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
program2021/migrations/0002_auto_20200805_0726.py
+19
-7
19 additions, 7 deletions
program2021/migrations/0002_auto_20200805_0726.py
program2021/models.py
+2
-9
2 additions, 9 deletions
program2021/models.py
with
21 additions
and
16 deletions
program2021/migrations/0002_auto_20200805_0726.py
+
19
−
7
View file @
9ed9c956
...
...
@@ -6,18 +6,30 @@ from django.db import migrations, models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
program2021
'
,
'
0001_initial
'
),
(
"
program2021
"
,
"
0001_initial
"
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'
program2021homepage
'
,
name
=
'
headline
'
,
field
=
models
.
CharField
(
blank
=
True
,
help_text
=
'
Hlavní titulek domovské stránky
'
,
max_length
=
100
,
null
=
True
,
verbose_name
=
'
název programu
'
),
model_name
=
"
program2021homepage
"
,
name
=
"
headline
"
,
field
=
models
.
CharField
(
blank
=
True
,
help_text
=
"
Hlavní titulek domovské stránky
"
,
max_length
=
100
,
null
=
True
,
verbose_name
=
"
název programu
"
,
),
),
migrations
.
AddField
(
model_name
=
'
program2021homepage
'
,
name
=
'
perex
'
,
field
=
models
.
TextField
(
blank
=
True
,
help_text
=
'
Text pod titulkem
'
,
max_length
=
512
,
null
=
True
,
verbose_name
=
'
perex
'
),
model_name
=
"
program2021homepage
"
,
name
=
"
perex
"
,
field
=
models
.
TextField
(
blank
=
True
,
help_text
=
"
Text pod titulkem
"
,
max_length
=
512
,
null
=
True
,
verbose_name
=
"
perex
"
,
),
),
]
This diff is collapsed.
Click to expand it.
program2021/models.py
+
2
−
9
View file @
9ed9c956
...
...
@@ -29,21 +29,14 @@ class Program2021HomePage(Page):
help_text
=
"
Hlavní titulek domovské stránky
"
,
)
perex
=
models
.
TextField
(
"
perex
"
,
max_length
=
512
,
blank
=
True
,
null
=
True
,
help_text
=
"
Text pod titulkem
"
,
"
perex
"
,
max_length
=
512
,
blank
=
True
,
null
=
True
,
help_text
=
"
Text pod titulkem
"
,
)
### PANELS
content_panels
=
Page
.
content_panels
+
[
MultiFieldPanel
(
[
FieldPanel
(
"
headline
"
),
FieldPanel
(
"
perex
"
),
],
[
FieldPanel
(
"
headline
"
),
FieldPanel
(
"
perex
"
),],
heading
=
"
Vyhledávací formulář
"
,
),
]
...
...
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