Skip to content

Commit

Permalink
Update news.py
Browse files Browse the repository at this point in the history
  • Loading branch information
strafrecht-admin authored Aug 24, 2023
1 parent a93fb5d commit 200965a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/models/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class Meta:

template = 'page.html'

@route(r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<slug>[\w-]+)/?$')
@route(r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/(?P<day>[0-9]{1,2})/(?P<slug>[\w-]+)/?$')
def article_by_date(self, request, year, month, day, slug):
article = get_object_or_404(
ArticlePage,
Expand Down

0 comments on commit 200965a

Please sign in to comment.