Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pi-cms
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Institut π
pi-cms
Commits
56b67048
Commit
56b67048
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
remove unused blocks
parent
a8b80840
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
home/blocks.py
+0
-28
0 additions, 28 deletions
home/blocks.py
home/models.py
+0
-20
0 additions, 20 deletions
home/models.py
with
0 additions
and
48 deletions
home/blocks.py
+
0
−
28
View file @
56b67048
from
wagtail.blocks
import
(
from
wagtail.blocks
import
(
CharBlock
,
CharBlock
,
DateBlock
,
EmailBlock
,
EmailBlock
,
PageChooserBlock
,
StructBlock
,
StructBlock
,
TextBlock
,
TextBlock
,
URLBlock
,
)
)
from
wagtail.documents.blocks
import
DocumentChooserBlock
class
PersonBlock
(
StructBlock
):
class
PersonBlock
(
StructBlock
):
...
@@ -19,27 +15,3 @@ class PersonBlock(StructBlock):
...
@@ -19,27 +15,3 @@ class PersonBlock(StructBlock):
label
=
"
Osoba
"
label
=
"
Osoba
"
template
=
"
home/blocks/person_block.html
"
template
=
"
home/blocks/person_block.html
"
icon
=
"
user
"
icon
=
"
user
"
class
DocumentBlock
(
StructBlock
):
name
=
CharBlock
(
label
=
"
Jméno
"
)
date_added
=
DateBlock
(
label
=
"
Datum přidání
"
,
required
=
False
)
page
=
PageChooserBlock
(
label
=
"
Stránka (místo dokumentu)
"
,
required
=
False
)
file
=
DocumentChooserBlock
(
label
=
"
Dokument
"
,
required
=
False
)
class
Meta
:
label
=
"
Dokument
"
template
=
"
home/blocks/document_block.html
"
icon
=
"
doc-full-inverse
"
class
EventBlock
(
StructBlock
):
name
=
CharBlock
(
label
=
"
Jméno
"
)
page
=
PageChooserBlock
(
label
=
"
Stránka
"
)
date
=
DateBlock
(
label
=
"
Datum konání
"
,
required
=
False
)
location
=
CharBlock
(
label
=
"
Lokace
"
,
required
=
False
)
class
Meta
:
label
=
"
Událost
"
template
=
"
home/blocks/event_block.html
"
icon
=
"
calendar-alt
"
This diff is collapsed.
Click to expand it.
home/models.py
+
0
−
20
View file @
56b67048
...
@@ -11,26 +11,6 @@ from .blocks import DocumentBlock, EventBlock, PersonBlock
...
@@ -11,26 +11,6 @@ from .blocks import DocumentBlock, EventBlock, PersonBlock
class
HomePage
(
Page
):
class
HomePage
(
Page
):
heading_text
=
RichTextField
(
verbose_name
=
"
Hlavní text stránky
"
)
heading_text
=
RichTextField
(
verbose_name
=
"
Hlavní text stránky
"
)
# --- Events ---
events
=
StreamField
(
[(
"
event
"
,
EventBlock
())],
verbose_name
=
"
Události
"
,
use_json_field
=
True
,
blank
=
True
,
null
=
True
,
)
# --- Documents ---
documents
=
StreamField
(
[(
"
document
"
,
DocumentBlock
())],
verbose_name
=
"
Dokumenty
"
,
use_json_field
=
True
,
blank
=
True
,
null
=
True
,
)
# --- Donations ---
# --- Donations ---
donation_text
=
RichTextField
(
verbose_name
=
"
Text pro dary
"
)
donation_text
=
RichTextField
(
verbose_name
=
"
Text pro dary
"
)
...
...
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