mybuddy/reports/urls.py

75 lines
2.3 KiB
Python
Raw Normal View History

2017-08-21 23:21:08 +00:00
# -*- coding: utf-8 -*-
from django.urls import path
2017-08-21 23:21:08 +00:00
from . import views
2022-02-10 00:00:30 +00:00
app_name = "reports"
2017-12-03 21:52:27 +00:00
2017-08-21 23:21:08 +00:00
urlpatterns = [
path(
"children/<str:slug>/reports",
views.ChildReportList.as_view(),
name="report-list",
),
2020-01-26 22:12:27 +00:00
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/changes/amounts/",
2020-01-26 22:12:27 +00:00
views.DiaperChangeAmounts.as_view(),
2022-02-10 00:00:30 +00:00
name="report-diaperchange-amounts-child",
2020-01-26 22:12:27 +00:00
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/changes/lifetimes/",
2017-09-25 17:14:14 +00:00
views.DiaperChangeLifetimesChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-diaperchange-lifetimes-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/changes/types/",
2017-09-13 15:25:12 +00:00
views.DiaperChangeTypesChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-diaperchange-types-child",
),
2019-05-29 17:05:30 +00:00
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/feeding/amounts/",
2019-05-29 17:05:30 +00:00
views.FeedingAmountsChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-feeding-amounts-child",
2019-05-29 17:05:30 +00:00
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/feeding/duration/",
views.FeedingDurationChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-feeding-duration-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/sleep/pattern/",
2017-09-13 15:25:12 +00:00
views.SleepPatternChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-sleep-pattern-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/sleep/totals/",
2017-09-13 15:53:32 +00:00
views.SleepTotalsChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-sleep-totals-child",
),
2021-10-04 19:37:11 +00:00
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/tummytime/duration/",
2021-10-04 19:37:11 +00:00
views.TummyTimeDurationChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-tummytime-duration-child",
2021-10-04 19:37:11 +00:00
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/weight/weight/",
2018-05-20 21:42:14 +00:00
views.WeightWeightChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-weight-weight-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/height/height/",
views.HeightHeightChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-height-height-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/head-circumference/head-circumference/",
views.HeadCircumferenceHeadCircumferenceChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-head-circumference-head-circumference-child",
),
path(
2022-02-10 00:00:30 +00:00
"children/<str:slug>/reports/bmi/bmi/",
views.BMIBMIChildReport.as_view(),
2022-02-10 00:00:30 +00:00
name="report-bmi-bmi-child",
),
2017-08-21 23:21:08 +00:00
]