Skip to content
Snippets Groups Projects
Commit 47fd3536 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix page routes

parent faab7c5c
Branches
No related tags found
No related merge requests found
......@@ -4,11 +4,9 @@ from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0024_alter_homepage_academic_council_description_and_more'),
('home', '0032_alter_homevideopage_content'),
("home", "0024_alter_homepage_academic_council_description_and_more"),
("home", "0032_alter_homevideopage_content"),
]
operations = [
]
operations = []
......@@ -261,7 +261,7 @@ class HomePage(RoutablePageMixin, Page):
# --- BEGIN Articles, events, videos and documents ---
class HomeArticlesPage(RoutablePageMixin, Page):
class HomeArticlesPage(Page):
content = RichTextField(verbose_name="Obsah", blank=True, null=True)
parent_page_type = ["home.HomePage"]
......@@ -293,7 +293,7 @@ class HomeArticlesPage(RoutablePageMixin, Page):
verbose_name = "Rozcestník článků"
class HomeEventsPage(RoutablePageMixin, Page):
class HomeEventsPage(Page):
content = RichTextField(verbose_name="Obsah", blank=True, null=True)
parent_page_type = ["home.HomePage"]
......@@ -311,7 +311,7 @@ class HomeEventsPage(RoutablePageMixin, Page):
verbose_name = "Rozcestník akcí"
class HomeDocumentsPage(RoutablePageMixin, Page):
class HomeDocumentsPage(Page):
content = RichTextField(verbose_name="Obsah", blank=True, null=True)
parent_page_type = ["home.HomePage"]
......@@ -329,7 +329,7 @@ class HomeDocumentsPage(RoutablePageMixin, Page):
verbose_name = "Rozcestník dokumentů"
class HomeVideosPage(RoutablePageMixin, Page):
class HomeVideosPage(Page):
content = RichTextField(verbose_name="Obsah", blank=True, null=True)
parent_page_type = ["home.HomePage"]
......@@ -347,7 +347,7 @@ class HomeVideosPage(RoutablePageMixin, Page):
verbose_name = "Rozcestník videí"
class HomeContentPageMixin(RoutablePageMixin, Page):
class HomeContentPageMixin(Page):
author_page = models.ForeignKey(
"home.HomePersonPage",
on_delete=models.SET_NULL,
......@@ -527,7 +527,7 @@ class HomeVideoPage(HomeContentPageMixin):
# --- BEGIN People ---
class HomePeoplePage(RoutablePageMixin, Page):
class HomePeoplePage(Page):
content = RichTextField(verbose_name="Obsah", blank=True, null=True)
parent_page_type = ["home.HomePage"]
......@@ -545,7 +545,7 @@ class HomePeoplePage(RoutablePageMixin, Page):
verbose_name = "Rozcestník osob"
class HomePersonPage(RoutablePageMixin, Page):
class HomePersonPage(Page):
image = models.ForeignKey(
"wagtailimages.Image",
null=True,
......
......@@ -176,6 +176,3 @@ WAGTAILSEARCH_BACKENDS = {
# 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
WAGTAILADMIN_BASE_URL = "http://example.com"
WAGTAIL_APPEND_SLASH = True
APPEND_SLASH = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment