summaryrefslogtreecommitdiff
path: root/app/fieldnotes/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/fieldnotes/urls.py')
-rw-r--r--app/fieldnotes/urls.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/fieldnotes/urls.py b/app/fieldnotes/urls.py
index 52fb6fe..afda6f9 100644
--- a/app/fieldnotes/urls.py
+++ b/app/fieldnotes/urls.py
@@ -5,6 +5,12 @@ from . import views
app_name = "field notes"
urlpatterns = [
+ re_path(
+ r'(?P<year>[0-9]{4})/$',
+ views.FieldNoteYearArchiveView.as_view(),
+ {'page': 1},
+ name="list_year"
+ ),
path(
r'',
views.FieldNoteListView.as_view(),
@@ -28,12 +34,8 @@ urlpatterns = [
),
path(
r'<int:year>/<int:month>/',
- views.FieldNoteMonthArchiveView.as_view(month_format='%m'),
+ views.FieldNoteMonthArchiveView.as_view(),
+ {'page': 1},
name="list_month"
),
- re_path(
- r'(?P<year>[0-9]{4})/$',
- views.FieldNoteYearArchiveView.as_view(),
- name="list_year"
- ),
]