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

fix page routes

parent faab7c5c
No related branches found
No related tags found
No related merge requests found
...@@ -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 = []
]
...@@ -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,
......
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment