Skip to content

Commit

Permalink
fix slash on article urls
Browse files Browse the repository at this point in the history
  • Loading branch information
yomguy committed Sep 12, 2023
1 parent e5095ee commit f54205f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions organization/magazine/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

urlpatterns = [
url(
"^article/detail/(?P<slug>.*)[%s]?$" % _slash,
"^article/detail/(?P<slug>.*)[%s]$" % _slash,
ArticleDetailView.as_view(),
name="magazine-article-detail"
),
Expand All @@ -44,11 +44,11 @@
name="magazine-article-list"
),
url(
"^article/list/(?P<keyword>.*)[%s]?$" % _slash, ArticleListView.as_view(),
"^article/list/(?P<keyword>.*)[%s]$" % _slash, ArticleListView.as_view(),
name="magazine-article-list"
),
url(
"^topic/detail/(?P<slug>.*)[%s]?$" % _slash,
"^topic/detail/(?P<slug>.*)[%s]$" % _slash,
TopicDetailView.as_view(),
name='topic-detail'
),
Expand Down
2 changes: 1 addition & 1 deletion organization/pages/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LinkStyleTranslationOptions(TranslationOptions):
@register(Home)
class HomeTranslationOptions(TranslationOptions):

pass
fields = ('punchline',)


@register(DynamicContentHomeSlider)
Expand Down

0 comments on commit f54205f

Please sign in to comment.