From f54205f10ff9b02dcef8004d4ed51fcce9aa298d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 12 Sep 2023 11:41:49 +0200 Subject: [PATCH] fix slash on article urls --- organization/magazine/urls.py | 6 +++--- organization/pages/translation.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/organization/magazine/urls.py b/organization/magazine/urls.py index 35b030e2..45ca0954 100644 --- a/organization/magazine/urls.py +++ b/organization/magazine/urls.py @@ -34,7 +34,7 @@ urlpatterns = [ url( - "^article/detail/(?P.*)[%s]?$" % _slash, + "^article/detail/(?P.*)[%s]$" % _slash, ArticleDetailView.as_view(), name="magazine-article-detail" ), @@ -44,11 +44,11 @@ name="magazine-article-list" ), url( - "^article/list/(?P.*)[%s]?$" % _slash, ArticleListView.as_view(), + "^article/list/(?P.*)[%s]$" % _slash, ArticleListView.as_view(), name="magazine-article-list" ), url( - "^topic/detail/(?P.*)[%s]?$" % _slash, + "^topic/detail/(?P.*)[%s]$" % _slash, TopicDetailView.as_view(), name='topic-detail' ), diff --git a/organization/pages/translation.py b/organization/pages/translation.py index 36afc179..293f8cce 100644 --- a/organization/pages/translation.py +++ b/organization/pages/translation.py @@ -37,7 +37,7 @@ class LinkStyleTranslationOptions(TranslationOptions): @register(Home) class HomeTranslationOptions(TranslationOptions): - pass + fields = ('punchline',) @register(DynamicContentHomeSlider)