Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Small changes to the URL patterns for diaries

Roland Geider65b7d58a3921
diff --git a/wger/nutrition/urls.py b/wger/nutrition/urls.py
index dbc8f449a..7c326576d 100644
--- a/wger/nutrition/urls.py
+++ b/wger/nutrition/urls.py
@@ -183,10 +183,10 @@ patterns_calories = [
# sub patterns for calories dairy
patterns_diary = [
- url(r'^overview/(?P<pk>\d+)$',
+ url(r'^(?P<pk>\d+)$',
log.overview,
name='overview'),
- url(r'^detail/(?P<pk>\d+)/(?P<year>\d{4})-(?P<month>\d{1,2})-(?P<day>\d{1,2})$',
+ url(r'^(?P<pk>\d+)/(?P<year>\d{4})-(?P<month>\d{1,2})-(?P<day>\d{1,2})$',
log.detail,
name='detail'),
]