Permalink
Browse files

better regexp for capturing the week parameter

  • Loading branch information...
Fantomas42 committed Apr 1, 2013
1 parent d609923 commit ba51d1802a8d1a530a30f38cc9a088107465dbbb
Showing with 2 additions and 2 deletions.
  1. +2 −2 zinnia/urls/archives.py
View
@@ -30,10 +30,10 @@
]
week_patterns = [
- url(_(r'^(?P<year>\d{4})/week/(?P<week>\d{2})/$'),
+ url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/$'),
EntryWeek.as_view(),
name='zinnia_entry_archive_week'),
- url(_(r'^(?P<year>\d{4})/week/(?P<week>\d{2})/page/(?P<page>\d+)/$'),
+ url(_(r'^(?P<year>\d{4})/week/(?P<week>\d+)/page/(?P<page>\d+)/$'),
EntryWeek.as_view(),
name='zinnia_entry_archive_week_paginated'),
]

0 comments on commit ba51d18

Please sign in to comment.