Skip to content

Commit 03bb3ea

Browse files
committed
Put logs and statistics under the routine URL
This makes the behaviour more consistent and the URL shorter
1 parent d0b9a99 commit 03bb3ea

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

wger/manager/urls.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@
2828
workout,
2929
)
3030

31-
32-
# sub patterns for workout logs
33-
patterns_log = [
34-
path(
35-
'<int:pk>/view',
36-
ReactView.as_view(login_required=True),
37-
name='log',
38-
),
39-
]
40-
4131
# sub patterns for templates
4232
patterns_templates = [
4333
path(
@@ -92,6 +82,16 @@
9282
ReactView.as_view(login_required=True),
9383
name='add',
9484
),
85+
path(
86+
'<int:pk>/statistics',
87+
ReactView.as_view(login_required=True),
88+
name='statistics',
89+
),
90+
path(
91+
'<int:pk>/logs',
92+
ReactView.as_view(login_required=True),
93+
name='logs',
94+
),
9595
path(
9696
'<int:pk>/view',
9797
ReactView.as_view(login_required=True),
@@ -129,5 +129,4 @@
129129
path('', include((patterns_routine, 'routine'), namespace='routine')),
130130
path('template/', include((patterns_templates, 'template'), namespace='template')),
131131
path('<int:routine_pk>/day/', include((patterns_days, 'day'), namespace='day')),
132-
path('log/', include((patterns_log, 'log'), namespace='log')),
133132
]

0 commit comments

Comments
 (0)