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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
ba2db26a
Commit
ba2db26a
authored
Jun 12, 2024
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
hide other party when there is no party defined, minor fixes
parent
248ef829
No related branches found
No related tags found
2 merge requests
!999
Release
,
!998
Release
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
district/models.py
+10
-9
10 additions, 9 deletions
district/models.py
shared/models/main.py
+1
-1
1 addition, 1 deletion
shared/models/main.py
uniweb/blocks.py
+4
-1
4 additions, 1 deletion
uniweb/blocks.py
uniweb/models.py
+1
-0
1 addition, 0 deletions
uniweb/models.py
with
16 additions
and
11 deletions
district/models.py
+
10
−
9
View file @
ba2db26a
...
...
@@ -125,15 +125,6 @@ class DistrictHomePage(CalendarMixin, MainHomePageMixin):
"
Text tlačítka kalendáře
"
,
max_length
=
256
,
default
=
"
Kalendář
"
)
gdpr_and_cookies_page
=
models
.
ForeignKey
(
# Keep this a reference to the main website's GDPR page. Not ideal, but works (for now).
"
main.MainSimplePage
"
,
verbose_name
=
"
Stránka pro GDPR
"
,
on_delete
=
models
.
PROTECT
,
blank
=
True
,
null
=
True
,
)
# --- END New fields ---
# Extra komentar v paticce
...
...
@@ -170,6 +161,10 @@ class DistrictHomePage(CalendarMixin, MainHomePageMixin):
### EDIT HANDLERS
settings_panels
=
[
FieldPanel
(
"
matomo_id
"
),
]
edit_handler
=
TabbedInterface
(
[
ObjectList
(
MainHomePageMixin
.
content_panels
,
heading
=
"
Obsah
"
),
...
...
@@ -201,6 +196,12 @@ class DistrictHomePage(CalendarMixin, MainHomePageMixin):
class
Meta
:
verbose_name
=
"
Oblastní sdružení
"
@property
def
gdpr_and_cookies_page
(
self
):
from
main.models
import
MainHomePage
return
MainHomePage
.
objects
.
first
().
gdpr_and_cookies_page
@property
def
articles_page_model
(
self
):
return
DistrictArticlesPage
...
...
This diff is collapsed.
Click to expand it.
shared/models/main.py
+
1
−
1
View file @
ba2db26a
...
...
@@ -1492,7 +1492,7 @@ class MainArticlePageMixin(
### BEGIN Panels
content_panels
=
[
content_panels
=
Page
.
content_panels
+
[
FieldPanel
(
"
timestamp
"
),
FieldPanel
(
"
perex
"
),
FieldPanel
(
"
content
"
),
...
...
This diff is collapsed.
Click to expand it.
uniweb/blocks.py
+
4
−
1
View file @
ba2db26a
...
...
@@ -74,7 +74,10 @@ class PersonContactBlock(StructBlock):
position
=
CharBlock
(
label
=
"
Název pozice
"
,
required
=
False
)
person
=
PageChooserBlock
(
label
=
"
Osoba
"
,
page_type
=
[
"
uniweb.UniwebPersonPage
"
],
page_type
=
[
"
uniweb.UniwebPersonPage
"
,
"
district.DistrictPersonPage
"
,
],
)
class
Meta
:
...
...
This diff is collapsed.
Click to expand it.
uniweb/models.py
+
1
−
0
View file @
ba2db26a
...
...
@@ -205,6 +205,7 @@ class MenuItemBlock(blocks.StructBlock):
"
uniweb.UniwebPeoplePage
"
,
"
uniweb.UniwebPersonPage
"
,
"
uniweb.UniwebPdfPage
"
,
"
district.DistrictPersonPage
"
,
],
)
...
...
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