summaryrefslogtreecommitdiff
path: root/app/sketches/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sketches/urls.py')
-rw-r--r--app/sketches/urls.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/sketches/urls.py b/app/sketches/urls.py
index 4bade9b..6554cef 100644
--- a/app/sketches/urls.py
+++ b/app/sketches/urls.py
@@ -1,10 +1,15 @@
-from django.urls import path
+from django.urls import path, re_path
from . import views
app_name = "sketches"
urlpatterns = [
+ re_path(
+ r'(?P<year>[0-9]{4})/$',
+ views.SketchYearArchiveView.as_view(),
+ name="list_year"
+ ),
path(
r'',
views.SketchListView.as_view(),
@@ -31,9 +36,4 @@ urlpatterns = [
views.SketchMonthArchiveView.as_view(month_format='%m'),
name="list_month"
),
- path(
- r'<int:year>/',
- views.SketchYearArchiveView.as_view(),
- name="list_year"
- ),
]