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
jakub.wolf
pi-cms
Commits
47fd3536
Commit
47fd3536
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
fix page routes
parent
faab7c5c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
home/migrations/0033_merge_20230820_1844.py
+3
-5
3 additions, 5 deletions
home/migrations/0033_merge_20230820_1844.py
home/models.py
+7
-7
7 additions, 7 deletions
home/models.py
institut/settings/base.py
+0
-3
0 additions, 3 deletions
institut/settings/base.py
with
10 additions
and
15 deletions
home/migrations/0033_merge_20230820_1844.py
+
3
−
5
View file @
47fd3536
...
@@ -4,11 +4,9 @@ from django.db import migrations
...
@@ -4,11 +4,9 @@ from django.db import migrations
class
Migration
(
migrations
.
Migration
):
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
dependencies
=
[
(
'
home
'
,
'
0024_alter_homepage_academic_council_description_and_more
'
),
(
"
home
"
,
"
0024_alter_homepage_academic_council_description_and_more
"
),
(
'
home
'
,
'
0032_alter_homevideopage_content
'
),
(
"
home
"
,
"
0032_alter_homevideopage_content
"
),
]
]
operations
=
[
operations
=
[]
]
This diff is collapsed.
Click to expand it.
home/models.py
+
7
−
7
View file @
47fd3536
...
@@ -261,7 +261,7 @@ class HomePage(RoutablePageMixin, Page):
...
@@ -261,7 +261,7 @@ class HomePage(RoutablePageMixin, Page):
# --- BEGIN Articles, events, videos and documents ---
# --- BEGIN Articles, events, videos and documents ---
class
HomeArticlesPage
(
RoutablePageMixin
,
Page
):
class
HomeArticlesPage
(
Page
):
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
parent_page_type
=
[
"
home.HomePage
"
]
parent_page_type
=
[
"
home.HomePage
"
]
...
@@ -293,7 +293,7 @@ class HomeArticlesPage(RoutablePageMixin, Page):
...
@@ -293,7 +293,7 @@ class HomeArticlesPage(RoutablePageMixin, Page):
verbose_name
=
"
Rozcestník článků
"
verbose_name
=
"
Rozcestník článků
"
class
HomeEventsPage
(
RoutablePageMixin
,
Page
):
class
HomeEventsPage
(
Page
):
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
parent_page_type
=
[
"
home.HomePage
"
]
parent_page_type
=
[
"
home.HomePage
"
]
...
@@ -311,7 +311,7 @@ class HomeEventsPage(RoutablePageMixin, Page):
...
@@ -311,7 +311,7 @@ class HomeEventsPage(RoutablePageMixin, Page):
verbose_name
=
"
Rozcestník akcí
"
verbose_name
=
"
Rozcestník akcí
"
class
HomeDocumentsPage
(
RoutablePageMixin
,
Page
):
class
HomeDocumentsPage
(
Page
):
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
parent_page_type
=
[
"
home.HomePage
"
]
parent_page_type
=
[
"
home.HomePage
"
]
...
@@ -329,7 +329,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page):
...
@@ -329,7 +329,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page):
verbose_name
=
"
Rozcestník dokumentů
"
verbose_name
=
"
Rozcestník dokumentů
"
class
HomeVideosPage
(
RoutablePageMixin
,
Page
):
class
HomeVideosPage
(
Page
):
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
parent_page_type
=
[
"
home.HomePage
"
]
parent_page_type
=
[
"
home.HomePage
"
]
...
@@ -347,7 +347,7 @@ class HomeVideosPage(RoutablePageMixin, Page):
...
@@ -347,7 +347,7 @@ class HomeVideosPage(RoutablePageMixin, Page):
verbose_name
=
"
Rozcestník videí
"
verbose_name
=
"
Rozcestník videí
"
class
HomeContentPageMixin
(
RoutablePageMixin
,
Page
):
class
HomeContentPageMixin
(
Page
):
author_page
=
models
.
ForeignKey
(
author_page
=
models
.
ForeignKey
(
"
home.HomePersonPage
"
,
"
home.HomePersonPage
"
,
on_delete
=
models
.
SET_NULL
,
on_delete
=
models
.
SET_NULL
,
...
@@ -527,7 +527,7 @@ class HomeVideoPage(HomeContentPageMixin):
...
@@ -527,7 +527,7 @@ class HomeVideoPage(HomeContentPageMixin):
# --- BEGIN People ---
# --- BEGIN People ---
class
HomePeoplePage
(
RoutablePageMixin
,
Page
):
class
HomePeoplePage
(
Page
):
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
content
=
RichTextField
(
verbose_name
=
"
Obsah
"
,
blank
=
True
,
null
=
True
)
parent_page_type
=
[
"
home.HomePage
"
]
parent_page_type
=
[
"
home.HomePage
"
]
...
@@ -545,7 +545,7 @@ class HomePeoplePage(RoutablePageMixin, Page):
...
@@ -545,7 +545,7 @@ class HomePeoplePage(RoutablePageMixin, Page):
verbose_name
=
"
Rozcestník osob
"
verbose_name
=
"
Rozcestník osob
"
class
HomePersonPage
(
RoutablePageMixin
,
Page
):
class
HomePersonPage
(
Page
):
image
=
models
.
ForeignKey
(
image
=
models
.
ForeignKey
(
"
wagtailimages.Image
"
,
"
wagtailimages.Image
"
,
null
=
True
,
null
=
True
,
...
...
This diff is collapsed.
Click to expand it.
institut/settings/base.py
+
0
−
3
View file @
47fd3536
...
@@ -176,6 +176,3 @@ WAGTAILSEARCH_BACKENDS = {
...
@@ -176,6 +176,3 @@ WAGTAILSEARCH_BACKENDS = {
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
# e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL
=
"
http://example.com
"
WAGTAILADMIN_BASE_URL
=
"
http://example.com
"
WAGTAIL_APPEND_SLASH
=
True
APPEND_SLASH
=
True
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