2017-08-15 19:14:03 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-12-13 23:12:32 +00:00
|
|
|
from django.urls import path
|
2017-08-15 19:14:03 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2022-02-10 00:00:30 +00:00
|
|
|
app_name = "core"
|
2017-12-03 21:52:27 +00:00
|
|
|
|
2017-08-15 19:14:03 +00:00
|
|
|
urlpatterns = [
|
2022-03-04 15:39:13 +00:00
|
|
|
path("pumping/", views.PumpingList.as_view(), name="pumping-list"),
|
|
|
|
path("pumping/add/", views.PumpingAdd.as_view(), name="pumping-add"),
|
2022-03-03 03:00:56 +00:00
|
|
|
path(
|
2022-03-04 15:39:13 +00:00
|
|
|
"pumping/<int:pk>/",
|
|
|
|
views.PumpingUpdate.as_view(),
|
|
|
|
name="pumping-update",
|
2022-03-03 03:00:56 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-03-04 15:39:13 +00:00
|
|
|
"pumping/<int:pk>/delete/",
|
|
|
|
views.PumpingDelete.as_view(),
|
|
|
|
name="pumping-delete",
|
2022-03-03 03:00:56 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("children/", views.ChildList.as_view(), name="child-list"),
|
|
|
|
path("children/add/", views.ChildAdd.as_view(), name="child-add"),
|
|
|
|
path("children/<str:slug>/", views.ChildDetail.as_view(), name="child"),
|
|
|
|
path("children/<str:slug>/edit/", views.ChildUpdate.as_view(), name="child-update"),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"children/<str:slug>/delete/", views.ChildDelete.as_view(), name="child-delete"
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("timeline/", views.Timeline.as_view(), name="timeline"),
|
|
|
|
path("changes/", views.DiaperChangeList.as_view(), name="diaperchange-list"),
|
|
|
|
path("changes/add/", views.DiaperChangeAdd.as_view(), name="diaperchange-add"),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"changes/<int:pk>/",
|
2017-12-13 23:12:32 +00:00
|
|
|
views.DiaperChangeUpdate.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="diaperchange-update",
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"changes/<int:pk>/delete/",
|
2017-12-13 23:12:32 +00:00
|
|
|
views.DiaperChangeDelete.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="diaperchange-delete",
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("feedings/", views.FeedingList.as_view(), name="feeding-list"),
|
|
|
|
path("feedings/add/", views.FeedingAdd.as_view(), name="feeding-add"),
|
|
|
|
path("feedings/<int:pk>/", views.FeedingUpdate.as_view(), name="feeding-update"),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"feedings/<int:pk>/delete/",
|
2017-12-13 23:12:32 +00:00
|
|
|
views.FeedingDelete.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="feeding-delete",
|
|
|
|
),
|
|
|
|
path("notes/", views.NoteList.as_view(), name="note-list"),
|
|
|
|
path("notes/add/", views.NoteAdd.as_view(), name="note-add"),
|
|
|
|
path("notes/<int:pk>/", views.NoteUpdate.as_view(), name="note-update"),
|
|
|
|
path("notes/<int:pk>/delete/", views.NoteDelete.as_view(), name="note-delete"),
|
|
|
|
path("sleep/", views.SleepList.as_view(), name="sleep-list"),
|
|
|
|
path("sleep/add/", views.SleepAdd.as_view(), name="sleep-add"),
|
|
|
|
path("sleep/<int:pk>/", views.SleepUpdate.as_view(), name="sleep-update"),
|
|
|
|
path("sleep/<int:pk>/delete/", views.SleepDelete.as_view(), name="sleep-delete"),
|
|
|
|
path("temperature/", views.TemperatureList.as_view(), name="temperature-list"),
|
|
|
|
path("temperature/add/", views.TemperatureAdd.as_view(), name="temperature-add"),
|
|
|
|
path(
|
|
|
|
"temperature/<int:pk>/",
|
2019-05-17 04:33:26 +00:00
|
|
|
views.TemperatureUpdate.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="temperature-update",
|
2019-05-17 04:33:26 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"temperature/<int:pk>/delete/",
|
2019-05-17 04:33:26 +00:00
|
|
|
views.TemperatureDelete.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="temperature-delete",
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("timers/", views.TimerList.as_view(), name="timer-list"),
|
|
|
|
path("timers/add/", views.TimerAdd.as_view(), name="timer-add"),
|
|
|
|
path("timers/add/quick/", views.TimerAddQuick.as_view(), name="timer-add-quick"),
|
|
|
|
path("timers/<int:pk>/", views.TimerDetail.as_view(), name="timer-detail"),
|
|
|
|
path("timers/<int:pk>/edit/", views.TimerUpdate.as_view(), name="timer-update"),
|
|
|
|
path("timers/<int:pk>/delete/", views.TimerDelete.as_view(), name="timer-delete"),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"timers/<int:pk>/restart/", views.TimerRestart.as_view(), name="timer-restart"
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("tummy-time/", views.TummyTimeList.as_view(), name="tummytime-list"),
|
|
|
|
path("tummy-time/add/", views.TummyTimeAdd.as_view(), name="tummytime-add"),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"tummy-time/<int:pk>/", views.TummyTimeUpdate.as_view(), name="tummytime-update"
|
2017-12-13 23:12:32 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"tummy-time/<int:pk>/delete/",
|
2017-12-13 23:12:32 +00:00
|
|
|
views.TummyTimeDelete.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="tummytime-delete",
|
|
|
|
),
|
|
|
|
path("weight/", views.WeightList.as_view(), name="weight-list"),
|
|
|
|
path("weight/add/", views.WeightAdd.as_view(), name="weight-add"),
|
|
|
|
path("weight/<int:pk>/", views.WeightUpdate.as_view(), name="weight-update"),
|
|
|
|
path("weight/<int:pk>/delete/", views.WeightDelete.as_view(), name="weight-delete"),
|
|
|
|
path("height/", views.HeightList.as_view(), name="height-list"),
|
|
|
|
path("height/add/", views.HeightAdd.as_view(), name="height-add"),
|
|
|
|
path("height/<int:pk>/", views.HeightUpdate.as_view(), name="height-update"),
|
|
|
|
path("height/<int:pk>/delete/", views.HeightDelete.as_view(), name="height-delete"),
|
|
|
|
path(
|
|
|
|
"head-circumference/",
|
2021-12-30 03:32:55 +00:00
|
|
|
views.HeadCircumferenceList.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="head-circumference-list",
|
2021-12-30 03:32:55 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"head-circumference/add/",
|
2021-12-30 03:32:55 +00:00
|
|
|
views.HeadCircumferenceAdd.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="head-circumference-add",
|
2021-12-30 03:32:55 +00:00
|
|
|
),
|
2021-12-29 07:53:36 +00:00
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"head-circumference/<int:pk>/",
|
2021-12-29 07:53:36 +00:00
|
|
|
views.HeadCircumferenceUpdate.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="head-circumference-update",
|
2021-12-29 07:53:36 +00:00
|
|
|
),
|
|
|
|
path(
|
2022-02-10 00:00:30 +00:00
|
|
|
"head-circumference/<int:pk>/delete/",
|
2021-12-29 07:53:36 +00:00
|
|
|
views.HeadCircumferenceDelete.as_view(),
|
2022-02-10 00:00:30 +00:00
|
|
|
name="head-circumference-delete",
|
2021-12-29 07:53:36 +00:00
|
|
|
),
|
2022-02-10 00:00:30 +00:00
|
|
|
path("bmi/", views.BMIList.as_view(), name="bmi-list"),
|
|
|
|
path("bmi/add/", views.BMIAdd.as_view(), name="bmi-add"),
|
|
|
|
path("bmi/<int:pk>/", views.BMIUpdate.as_view(), name="bmi-update"),
|
|
|
|
path("bmi/<int:pk>/delete/", views.BMIDelete.as_view(), name="bmi-delete"),
|
2017-08-15 19:14:03 +00:00
|
|
|
]
|