Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better regexp for capturing the week parameter

  • Loading branch information...
commit ba51d1802a8d1a530a30f38cc9a088107465dbbb 1 parent d609923
@Fantomas42 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 zinnia/urls/archives.py
View
4 zinnia/urls/archives.py
@@ -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'),
]
Please sign in to comment.
Something went wrong with that request. Please try again.